Skip to content

Commit cc58783

Browse files
committed
ci: update test workflow with Jest coverage and move release preparation to workflow
1 parent 46242b4 commit cc58783

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,10 @@ jobs:
2424
run: yarn install --frozen-lockfile
2525

2626
- name: Run tests
27-
run: yarn test
27+
run: yarn test --coverage
28+
29+
- name: Upload coverage report
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: coverage
33+
path: coverage/

.github/workflows/weekly-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
- name: Authenticate with npm
5656
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
5757

58+
- name: Run release preparation (test, build, docs)
59+
run: yarn prepare:release
60+
5861
- name: Run release-it
5962
env:
6063
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.release-it.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
}
2323
},
2424
"hooks": {
25-
"before:init": "yarn prepare:release",
2625
"before:commit": "git add .",
2726
"after:release": "major=$(echo ${version} | cut -d. -f1) && git tag -f v$major && git push -f origin v$major"
2827
}

0 commit comments

Comments
 (0)