Skip to content

Commit 6cb28ef

Browse files
committed
Remove unnecessary permissions and GitHub token setup for npm publish in release workflow
1 parent 0afee22 commit 6cb28ef

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ on:
2929
jobs:
3030
release-it:
3131
runs-on: ubuntu-latest
32-
permissions:
33-
contents: write
34-
packages: write
3532
steps:
3633
- uses: tibdex/github-app-token@v1
3734
id: generate-token
@@ -58,10 +55,8 @@ jobs:
5855
- name: set NPM Token
5956
run: |
6057
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
61-
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc
6258
env:
6359
NPM_TOKEN: ${{ secrets.NPM_TOKEN_NEOLUTION }}
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6560

6661
- name: run release-it
6762
run: |
@@ -86,7 +81,3 @@ jobs:
8681
yarn release-it "${params[@]}"
8782
env:
8883
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
89-
90-
- name: publish to github packages
91-
if: ${{ github.event.inputs.dry_run != 'true' }}
92-
run: npm publish --registry=https://npm.pkg.github.com/

0 commit comments

Comments
 (0)