File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1313 release :
1414 runs-on : ubuntu-latest
1515 steps :
16+ - name : Check NPM Token
17+ id : check-token
18+ run : |
19+ if [ -z "${{ secrets.NODE_AUTH_TOKEN }}" ]; then
20+ echo "npm-token-exists=false" >> $GITHUB_OUTPUT
21+ echo "⚠️ NODE_AUTH_TOKEN secret is not set. Skipping release steps."
22+ else
23+ echo "npm-token-exists=true" >> $GITHUB_OUTPUT
24+ echo "✅ NODE_AUTH_TOKEN secret is available."
25+ fi
26+
1627 - name : Checkout
1728 uses : actions/checkout@v4
1829
3243 uses : actions/setup-node@v4
3344 with :
3445 node-version : ' 22.18.0'
46+ registry-url : ' https://registry.npmjs.org'
3547
3648 - name : Setup PNPM
3749 uses : pnpm/action-setup@v4
4254 run : pnpm install --frozen-lockfile
4355
4456 - name : Build
45- run : pnpm build
57+ run : pnpm build
58+
59+ # - name: Release
60+ # if: steps.check-token.outputs.npm-token-exists == 'true'
61+ # env:
62+ # NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
63+ # run: |
64+ # # Add your release commands here
65+ # # e.g., npx changeset publish
You can’t perform that action at this time.
0 commit comments