We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79f6729 commit 8b32d79Copy full SHA for 8b32d79
.github/workflows/auto-tag.yml
@@ -8,7 +8,7 @@ on:
8
branches: [main]
9
10
jobs:
11
- create-tag:
+ test-and-tag:
12
# Only run if push to main or PR was merged (not just closed)
13
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
14
runs-on: ubuntu-latest
@@ -20,6 +20,21 @@ jobs:
20
with:
21
fetch-depth: 0 # Required for identifying tags
22
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
38
- name: Get version from package.json
39
id: package-version
40
uses: martinbeentjes/[email protected]
0 commit comments