Skip to content

Commit 49047f5

Browse files
committed
fix: reorder release workflow steps to fix npm ci issue
- Move version sync before npm ci - This prevents npm ci from failing when package.json version doesn't exist on npm yet
1 parent 1848dcf commit 49047f5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ jobs:
4444
registry-url: https://registry.npmjs.org
4545
cache: npm
4646

47+
- name: Sync version from release tag
48+
run: npm pkg set version="${GITHUB_REF_NAME#v}"
49+
4750
- run: npm ci
4851

4952
- name: Build
5053
run: npm run build
5154

52-
- name: Sync version from release tag
53-
run: npm pkg set version="${GITHUB_REF_NAME#v}"
54-
5555
- name: Publish to npm
5656
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)