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 e72a6ed
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .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 @@ -24,13 +26,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
registry-url: 'https://npm.pkg.github.com/'
scope: '@adaptate'

# - 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 e72a6ed

Please sign in to comment.