Skip to content

Commit

Permalink
ci: release github-package
Browse files Browse the repository at this point in the history
  • Loading branch information
gimnathperera committed Sep 18, 2023
1 parent c27cd24 commit 2384282
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:

- name: Install dependencies
run: npm install --frozen-lockfile
- name: Debug NPM_AUTH_TOKEN
run: echo $NPM_AUTH_TOKEN

- name: Create Release Pull Request or Publish
id: changesets
Expand All @@ -35,3 +37,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Publish to GitHub Packages
run: |
echo "//npm.pkg.github.com/:_authToken=\${NODE_AUTH_TOKEN}" >> ~/.npmrc
npm publish --registry=https://npm.pkg.github.com
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2384282

Please sign in to comment.