File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 if : ${{ always() && !failure() && !cancelled() }}
4646 needs : [test, check-workflow-files]
4747 runs-on : ubuntu-latest
48+ permissions :
49+ id-token : write
50+ contents : read
4851 steps :
4952 - uses : actions/checkout@v4
5053 - uses : pnpm/action-setup@v4
@@ -58,20 +61,15 @@ jobs:
5861 - name : Publish (development)
5962 if : github.event.pull_request.head.repo.full_name == 'RightCapitalHQ/verdaccio-package-diff' && github.base_ref == github.event.repository.default_branch
6063 env :
61- NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
6264 HEAD_REF : ${{ github.head_ref }}
6365 run : |
64- npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
6566 preid="${HEAD_REF//\//-}".${{ github.run_number }}.${{ github.run_attempt }}
6667 pnpm exec npm --no-git-tag-version version prerelease --preid="${preid}"
6768 pnpm publish --no-git-checks --access public --tag development
6869
6970 - name : Publish (main)
7071 if : github.repository == 'RightCapitalHQ/verdaccio-package-diff' && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
71- env :
72- NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
7372 run : |
74- npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
7573 git config --local user.email "npm-publisher@rightcapital.com"
7674 git config --local user.name "GitHub Actions[bot]"
7775 pnpm beachball publish --access public --yes -m 'chore(release): applying package updates'
Original file line number Diff line number Diff line change 1- 20.18 .0
1+ 24.10 .0
You can’t perform that action at this time.
0 commit comments