Skip to content

Commit

Permalink
Add workflow for GitHub package
Browse files Browse the repository at this point in the history
  • Loading branch information
p10ns11y committed Nov 6, 2024
1 parent 8cdaa0a commit 98a7d2e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- main
paths:
- 'package.json'
- 'packages/**/package.json'

workflow_dispatch:

jobs:
Expand All @@ -26,11 +28,15 @@ jobs:
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Configure .npmrc for GitHub Packages
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
echo "@adaptate:registry=https://npm.pkg.github.com" >> ~/.npmrc
- name: Install dependencies
run: npm ci

- name: Build project

run: npx turbo run build

- name: Publish to GitHub Packages
Expand Down

0 comments on commit 98a7d2e

Please sign in to comment.