Skip to content

Commit 57c44ad

Browse files
committed
add release workflow
1 parent d90717a commit 57c44ad

File tree

4 files changed

+60
-6
lines changed

4 files changed

+60
-6
lines changed

.github/workflows/release.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
permissions:
8+
contents: write
9+
id-token: write
10+
packages: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '24.x'
24+
registry-url: 'https://registry.npmjs.org'
25+
cache: 'npm'
26+
always-auth: true
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Run all checks and build
32+
run: npm run all
33+
34+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
35+
run: npm audit signatures
36+
37+
- name: Publish to npm
38+
run: npm publish --provenance --access public
39+
40+
- name: Create GitHub Release
41+
uses: softprops/action-gh-release@v2
42+
with:
43+
generate_release_notes: true

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ A Jest test reporter to create test reports that follow the CTRF standard.
2929
</div>
3030

3131
<p style="font-size: 14px; margin: 1rem 0;">
32-
Maintained by <a href="https://github.com/ma11hewthomas">Matthew Thomas</a><br/>
32+
3333
Contributions are very welcome! <br/>
34-
Explore more <a href="https://www.ctrf.io/integrations">integrations</a>
34+
Explore more <a href="https://www.ctrf.io/integrations">integrations</a> <br/>
35+
<a href="https://app.formbricks.com/s/cmefs524mhlh1tl01gkpvefrb">Let us know your thoughts</a>.
36+
3537
</p>
3638
</div>
3739

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jest-ctrf-json-reporter",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "A Jest test reporter to create test results reports",
55
"main": "dist/index.js",
66
"scripts": {
@@ -9,7 +9,16 @@
99
"lint": "eslint . --ext .ts --fix",
1010
"lint-check": "eslint . --ext .ts",
1111
"format": "prettier --write .",
12-
"format-check": "prettier --check ."
12+
"format-check": "prettier --check .",
13+
"all": "npm run build && npm run test && npm run lint && npm run format"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "git+https://github.com/ctrf-io/jest-ctrf-json-reporter.git"
18+
},
19+
"publishConfig": {
20+
"access": "public",
21+
"provenance": true
1322
},
1423
"files": [
1524
"dist/",

0 commit comments

Comments
 (0)