4444 uses : actions/setup-node@v4
4545 with :
4646 registry-url : ' https://registry.npmjs.org/'
47- node-version : 22
47+ node-version : 24
4848
4949 - name : Get npm cache directory path
5050 id : npm-cache-dir-path
@@ -64,45 +64,26 @@ jobs:
6464 - name : 🧪 Dry-Run - GitHub Release
6565 if : ${{ inputs.dryrun == true }}
6666 env :
67- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
6867 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69- NPM_CONFIG_PROVENANCE : true
7068 run : |
7169 git config --global user.name "${{ github.actor }}"
7270 git config --global user.email "${{ github.actor }}@users.noreply.github.com"
73- npm whoami
7471 npx release-it --ci --dry-run
7572
76- - name : OTP
77- if : ${{ inputs.dryrun != true }}
78- uses : step-security/wait-for-secrets@v1
79- id : wait-for-secrets
80- with :
81- secrets : |
82- OTP:
83- name: 'OTP to publish package'
84- description: 'OTP from authenticator app'
85-
8673 - name : Fixed Version Release ⚙️ / NPM Publish 📦
8774 if : ${{ inputs.version != '' }}
8875 env :
89- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
9076 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
91- NPM_CONFIG_PROVENANCE : true
9277 run : |
9378 git config --global user.name "${{ github.actor }}"
9479 git config --global user.email "${{ github.actor }}@users.noreply.github.com"
95- npm whoami
96- npx release-it ${{ inputs.version }} --ci --plugins.'@release-it/conventional-changelog'.ignoreRecommendedBump=false --npm.otp=${{ steps.wait-for-secrets.outputs.OTP }}
80+ npx release-it ${{ inputs.version }} --ci --plugins.'@release-it/conventional-changelog'.ignoreRecommendedBump=false
9781
9882 - name : GitHub Release 🏷️ / NPM Publish 📦
9983 if : ${{ inputs.dryrun != true && inputs.version == '' }}
10084 env :
101- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
10285 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103- NPM_CONFIG_PROVENANCE : true
10486 run : |
10587 git config --global user.name "${{ github.actor }}"
10688 git config --global user.email "${{ github.actor }}@users.noreply.github.com"
107- npm whoami
108- npx release-it --ci --npm.otp=${{ steps.wait-for-secrets.outputs.OTP }}
89+ npx release-it --ci
0 commit comments