Skip to content

Commit

Permalink
switch to npm registry for publishing packages
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed May 1, 2024
1 parent 49cae8f commit 2c77639
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,18 @@ jobs:
- run: npm run test:coverage
- run: npm run build

publish-gpr:
publish-npm-registry:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm publish
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 2c77639

Please sign in to comment.