Skip to content

Commit 6da10d3

Browse files
committed
ci: Fix release action
1 parent 1568e92 commit 6da10d3

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,24 @@ jobs:
1111
fetch-depth: 0
1212
ref: main
1313
token: ${{ secrets.GIT_ACCESS_TOKEN }}
14-
- name: Deps
15-
run: npm ci
16-
- name: Tests
17-
run: npm run test:coverage
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 16
17+
registry-url: https://registry.npmjs.org/
18+
- run: npm ci
19+
- run: npm run test:coverage
20+
- run: NODE_ENV=production npm run build
1821
- name: Generating coverage badges
1922
uses: jpb06/jest-badges-action@latest
2023
with:
2124
branches: main
2225
no-commit: true
23-
- name: Bump and changelog using commitizen
26+
- run: git add badges
27+
- run: npm run version:bump
28+
- name: Push to GitHub
2429
run: |
25-
git add badges
2630
git config user.name "github-actions[bot]"
2731
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
28-
npm run version:bump
2932
git push -f
3033
git push --tags
3134
- name: Publish to NPM

0 commit comments

Comments
 (0)