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 4580d85
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,16 @@ 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
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 4580d85

Please sign in to comment.