File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 1515jobs :
1616 publish-packages :
1717 runs-on : ubuntu-latest
18+ permissions :
19+ contents : write
20+ id-token : write
21+ pull-requests : write
1822 steps :
1923 - name : checkout
20- uses : actions/checkout@v1
24+ uses : actions/checkout@v4
2125
2226 - name : Configure CI Git User
2327 run : |
2428 git config --global user.name 'Rajat Saxena'
2529 git config --global user.email 'hi@sub.rajatsaxena.dev'
26- git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_PAT @github.com/codelitdev/courselit
30+ git remote set-url origin https://x-access-token:${{ secrets.PAT }} @github.com/${{ github.repository }}
2731 env :
2832 GITHUB_PAT : ${{ secrets.PAT }}
2933
@@ -33,20 +37,13 @@ jobs:
3337 git pull origin ${{ github.ref_name }}
3438
3539 - name : Setup pnpm
36- uses : pnpm/action-setup@v2
40+ uses : pnpm/action-setup@v4
3741 with :
38- version : 8
42+ version : latest
3943
4044 - name : Install Packages
4145 run : pnpm install
4246
43- - name : Authenticate with Registry
44- run : |
45- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
46- pnpm whoami
47- env :
48- NPM_TOKEN : ${{ secrets.NPM }}
49-
5047 - name : Create and publish versions
5148 id : changesets
5249 uses : changesets/action@v1
5653 publish : pnpm ci:publish
5754 env :
5855 GITHUB_TOKEN : ${{ secrets.PAT }}
59- NPM_TOKEN : ${{ secrets.NPM }}
6056
6157 - name : Echo changeset output
6258 run : echo "${{ steps.changesets.outputs.hasChangesets }}"
You can’t perform that action at this time.
0 commit comments