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 aa1de45
Show file tree
Hide file tree
Showing 2 changed files with 6 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}}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@brdgm/brdgm-commons",
"version": "1.6.4",
"description": "brdgm-commons",
"repository": "github:brdgm/brdgm-commons",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down

0 comments on commit aa1de45

Please sign in to comment.