Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix github npm package release permissions #352

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ jobs:
needs: [static-checks-npm, tests-npm]
uses: digicatapult/shared-workflows/.github/workflows/release-module-npm.yml@main
with:
npm_build: true
npm_build_command: npm run build
permissions:
contents: write
packages: write
secrets:
REGISTRY_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
release-gh-packages:
needs: [static-checks-npm, tests-npm]
uses: digicatapult/shared-workflows/.github/workflows/release-module-npm.yml@main
with:
npm_build: true
npm_build_command: npm run build
registry_url: 'https://npm.pkg.github.com'
permissions:
contents: write
secrets:
REGISTRY_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
packages: write
release-github:
needs: [release-npm, release-gh-packages]
uses: digicatapult/shared-workflows/.github/workflows/release-github.yml@main
Expand Down
Loading