Skip to content

Commit d1f3263

Browse files
authored
Fix exec setup-node after checkout (#387)
2 parents 25562a7 + 888fd72 commit d1f3263

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ jobs:
3737
export TAG_NAME=${{ needs.draft_release.outputs.tag_name }}
3838
echo "VERSION=${TAG_NAME:1}" >> $GITHUB_ENV
3939
40-
- uses: actions/setup-node@v4
41-
with:
42-
node-version-file: .tool-versions
43-
registry-url: 'https://registry.npmjs.org'
44-
45-
# Ensure npm 11.5.1 or later for trusted publishing
46-
- name: Update npm
47-
run: npm install -g npm@latest
48-
4940
# Use GitHub App for bypassing ruleset guard when git push by npm publish
5041
- uses: actions/create-github-app-token@v2
5142
id: app-token
@@ -61,6 +52,14 @@ jobs:
6152
git config user.name github-actions
6253
git config user.email github-actions@github.com
6354
55+
- uses: actions/setup-node@v4
56+
with:
57+
node-version-file: .tool-versions
58+
registry-url: 'https://registry.npmjs.org'
59+
# Ensure npm 11.5.1 or later for trusted publishing
60+
- name: Update npm
61+
run: npm install -g npm@latest
62+
6463
# npm publish and push updated package.json
6564
- name: Publish to npm and jsr
6665
run: |

0 commit comments

Comments
 (0)