1313 type : boolean
1414 default : false
1515
16+ permissions :
17+ id-token : write # Required for OIDC
18+ contents : write
19+
1620jobs :
1721 release :
1822 runs-on : ubuntu-latest
1923 steps :
20- - uses : actions/checkout@v5
24+ - uses : actions/checkout@v6
2125 with :
22- token : ${{ secrets.GH_TOKEN }}
26+ ssh-key : ${{ secrets.PUSH_DEPLOY_KEY }}
2327 fetch-depth : 0
2428 fetch-tags : true
2529
3034 with :
3135 node-version : 22
3236 check-latest : true
37+ registry-url : " https://registry.npmjs.org"
3338
3439 - name : Check git tags
3540 if : github.ref == 'refs/heads/main' && !inputs.allow-no-tags
4550
4651 - name : New version (dry run)
4752 if : github.ref == 'refs/heads/main' && inputs.dry-run
48- run : yarn yarn-version version --dry-run
53+ run : yarn run pob- version --dry-run
4954
5055 - name : Configure Git user
5156 if : github.ref == 'refs/heads/main' && !inputs.dry-run
@@ -56,21 +61,21 @@ jobs:
5661 - name : New version
5762 if : github.ref == 'refs/heads/main' && !inputs.dry-run
5863 run : |
59- yarn yarn-version version --create-release=github -m 'chore: release %v [skip ci]'
64+ yarn run pob- version --create-release=github -m 'chore: release %v [skip ci]'
6065 env :
61- HUSKY : 0
62- GH_TOKEN : ${{ secrets.GH_TOKEN }}
66+ POB_GIT_HOOKS : 0
6367 YARN_ENABLE_IMMUTABLE_INSTALLS : false
68+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6469
6570 - name : Publish to npm
71+ if : github.ref == 'refs/heads/main' && !inputs.dry-run
6672 run : |
67- if [ -z "$NODE_AUTH_TOKEN " ]; then
68- echo "Missing env variable NODE_AUTH_TOKEN "
73+ if [ -z "$NPM_AUTH_TOKEN " ]; then
74+ echo "Missing env variable NPM_AUTH_TOKEN "
6975 exit 1
7076 fi
7177 echo >> ./.yarnrc.yml
72- echo "npmAuthToken: $NODE_AUTH_TOKEN " >> ./.yarnrc.yml
78+ echo "npmAuthToken: $NPM_AUTH_TOKEN " >> ./.yarnrc.yml
7379 yarn workspaces foreach --all --parallel --no-private npm publish --tolerate-republish
74- if : github.ref == 'refs/heads/main' && !inputs.dry-run
7580 env :
76- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
81+ NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments