File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 7676 if : ${{ always() && !failure() && !cancelled() }}
7777 needs : check-beachball-changefile
7878 runs-on : ubuntu-latest
79+ permissions :
80+ id-token : write
81+ contents : read
7982 steps :
8083 - uses : actions/checkout@v4
8184 - uses : pnpm/action-setup@v4
@@ -91,19 +94,15 @@ jobs:
9194 - name : Publish (development)
9295 if : github.repository == 'RightCapitalHQ/php-parser' && github.base_ref == github.event.repository.default_branch
9396 env :
94- NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
97+ HEAD_REF : ${{ github.head_ref }}
9598 run : |
96- npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
9799 preid="${HEAD_REF//\//-}".${{ github.run_number }}.${{ github.run_attempt }}
98100 npm --no-git-tag-version version prerelease --preid="${preid}"
99101 pnpm publish --no-git-checks --access public --tag development
100102
101103 - name : Publish (main)
102104 if : github.repository == 'RightCapitalHQ/php-parser' && github.ref_name == github.event.repository.default_branch
103- env :
104- NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
105105 run : |
106- npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
107106 git config --local user.email "npm-publisher@rightcapital.com"
108107 git config --local user.name "GitHub Actions[bot]"
109108 pnpm beachball publish --access public --yes -m 'chore(release): applying package updates'
Original file line number Diff line number Diff line change 1- 22.17.1
1+ 24.10.0
Original file line number Diff line number Diff line change 1+ {
2+ "comment" : " ci: migrate to trusted publishing" ,
3+ "type" : " none" ,
4+ "packageName" : " @rightcapital/php-parser" ,
5+ "email" : " im@pyonpyon.today" ,
6+ "dependentChangeType" : " none"
7+ }
You can’t perform that action at this time.
0 commit comments