Skip to content

Commit 47362ff

Browse files
fix(ci): add node.js setup for semantic-release
- Add setup-node action with npm cache - Run npm ci to install dependencies from package-lock.json - Remove hardcoded semantic_version (use local package.json) - Add package.json to paths trigger 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 240e5a5 commit 47362ff

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- 'pyproject.toml'
99
- '.github/workflows/release.yaml'
1010
- '.releaserc.json'
11+
- 'package.json'
1112

1213
jobs:
1314
build-and-release:
@@ -21,11 +22,19 @@ jobs:
2122
fetch-depth: 0
2223
token: ${{ secrets.GITHUB_TOKEN }}
2324

25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: '20'
29+
cache: 'npm'
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
2434
- name: Get Next Version
2535
id: version
2636
uses: cycjimmy/semantic-release-action@v4
2737
with:
28-
semantic_version: 21
2938
dry_run: true
3039
env:
3140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -34,8 +43,6 @@ jobs:
3443
id: semantic
3544
if: steps.version.outputs.new_release_version
3645
uses: cycjimmy/semantic-release-action@v4
37-
with:
38-
semantic_version: 21
3946
env:
4047
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4148

0 commit comments

Comments
 (0)