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 041a2e2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 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 @@ -26,6 +28,11 @@ 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

Expand All @@ -35,8 +42,7 @@ jobs:

- name: Publish to GitHub Packages
working-directory: packages/core
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

run: npm publish --registry=https://npm.pkg.github.com/

- name: Publish to npm
Expand Down

0 comments on commit 041a2e2

Please sign in to comment.