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 7979 if : ${{ always() && !failure() && !cancelled() }}
8080 needs : [test, check-beachball-changefile]
8181 runs-on : ubuntu-latest
82+ permissions :
83+ id-token : write
84+ contents : read
8285 steps :
8386 - uses : actions/checkout@v4
8487 - uses : pnpm/action-setup@v4
@@ -94,19 +97,15 @@ jobs:
9497 - name : Publish (development)
9598 if : github.repository == 'RightCapitalHQ/phpdoc-parser' && github.base_ref == github.event.repository.default_branch
9699 env :
97- NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
100+ HEAD_REF : ${{ github.head_ref }}
98101 run : |
99- npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
100102 preid="${HEAD_REF//\//-}".${{ github.run_number }}.${{ github.run_attempt }}
101103 npm --no-git-tag-version version prerelease --preid="${preid}"
102104 pnpm publish --no-git-checks --access public --tag development
103105
104106 - name : Publish (main)
105107 if : github.repository == 'RightCapitalHQ/phpdoc-parser' && github.ref_name == github.event.repository.default_branch
106- env :
107- NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
108108 run : |
109- npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
110109 git config --local user.email "npm-publisher@rightcapital.com"
111110 git config --local user.name "GitHub Actions[bot]"
112111 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/phpdoc-parser" ,
5+ "email" : " im@pyonpyon.today" ,
6+ "dependentChangeType" : " none"
7+ }
You can’t perform that action at this time.
0 commit comments