Skip to content

Commit 8b32d79

Browse files
committed
fix: update auto-tag workflow
1 parent 79f6729 commit 8b32d79

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/auto-tag.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches: [main]
99

1010
jobs:
11-
create-tag:
11+
test-and-tag:
1212
# Only run if push to main or PR was merged (not just closed)
1313
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
1414
runs-on: ubuntu-latest
@@ -20,6 +20,21 @@ jobs:
2020
with:
2121
fetch-depth: 0 # Required for identifying tags
2222

23+
- name: Use Node.js 20
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '20.x'
27+
cache: 'npm'
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Run tests
33+
run: npm test
34+
35+
- name: Run linting
36+
run: npm run lint
37+
2338
- name: Get version from package.json
2439
id: package-version
2540
uses: martinbeentjes/[email protected]

0 commit comments

Comments
 (0)