Skip to content

Commit 40495ce

Browse files
committed
add release workflow
1 parent 9d5c751 commit 40495ce

File tree

4 files changed

+55
-5
lines changed

4 files changed

+55
-5
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This package is useful if there isn't a CTRF reporter available for your test fr
2424

2525
Contributions are very welcome! <br/>
2626
Explore more <a href="https://www.ctrf.io/integrations">integrations</a> <br/>
27-
We’d love your feedback, <a href="https://app.formbricks.com/s/cmefs524mhlh1tl01gkpvefrb">share it anonymously</a>.
27+
<a href="https://app.formbricks.com/s/cmefs524mhlh1tl01gkpvefrb">Let us know your thoughts</a>.
2828

2929
</p>
3030
</div>

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: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "junit-to-ctrf",
3-
"version": "0.0.12",
3+
"version": "0.0.13",
44
"description": "Convert JUnit XML reports to CTRF JSON",
55
"type": "module",
66
"main": "dist/index.js",
@@ -37,7 +37,14 @@
3737
"README.md"
3838
],
3939
"author": "Matthew Thomas",
40-
"repository": "github:ctrf-io/junit-to-ctrf",
40+
"repository": {
41+
"type": "git",
42+
"url": "git+https://github.com/ctrf-io/junit-to-ctrf.git"
43+
},
44+
"publishConfig": {
45+
"access": "public",
46+
"provenance": true
47+
},
4148
"homepage": "https://ctrf.io",
4249
"license": "MIT",
4350
"dependencies": {

0 commit comments

Comments
 (0)