Skip to content

Commit 24dcf70

Browse files
committed
chore: add release workflow
1 parent 623d12f commit 24dcf70

File tree

4 files changed

+65
-15
lines changed

4 files changed

+65
-15
lines changed

.github/workflows/main.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ jobs:
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3434
if: always()
35-

.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: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ CTRF is a JSON test report standard with a seamless developer tool integration
2323
</div>
2424

2525
<p style="font-size: 14px; margin: 1rem 0;">
26-
Maintained by <a href="https://github.com/ma11hewthomas">Matthew Thomas</a><br/>
26+
2727
Contributions are very welcome! <br/>
28-
Explore more <a href="https://www.ctrf.io/integrations">integrations</a>
28+
Explore more <a href="https://www.ctrf.io/integrations">integrations</a> <br/>
29+
<a href="https://app.formbricks.com/s/cmefs524mhlh1tl01gkpvefrb">Let us know your thoughts here</a>.
30+
2931
</p>
3032
</div>
33+
</div>
3134

3235
## Features
3336

@@ -66,16 +69,6 @@ Explore more <a href="https://www.ctrf.io/integrations">integrations</a>
6669
}
6770
```
6871

69-
## What is CTRF?
70-
71-
CTRF is a universal JSON test report schema that addresses the lack of a standardized format for JSON test reports.
72-
73-
**Consistency Across Tools:** Different testing tools and frameworks often produce reports in varied formats. CTRF ensures a uniform structure, making it easier to understand and compare reports, regardless of the testing tool used.
74-
75-
**Language and Framework Agnostic:** It provides a universal reporting schema that works seamlessly with any programming language and testing framework.
76-
77-
**Facilitates Better Analysis:** With a standardized format, programatically analyzing test outcomes across multiple platforms becomes more straightforward.
78-
7972
## Installation
8073

8174
```bash
@@ -153,6 +146,16 @@ The test object in the report includes the following [CTRF properties](https://c
153146
| `flaky` | Boolean | Optional | Indicates whether the test result is flaky. |
154147
| `browser` | String | Optional | The browser used for the test. |
155148

149+
## What is CTRF?
150+
151+
CTRF is a universal JSON test report schema that addresses the lack of a standardized format for JSON test reports.
152+
153+
**Consistency Across Tools:** Different testing tools and frameworks often produce reports in varied formats. CTRF ensures a uniform structure, making it easier to understand and compare reports, regardless of the testing tool used.
154+
155+
**Language and Framework Agnostic:** It provides a universal reporting schema that works seamlessly with any programming language and testing framework.
156+
157+
**Facilitates Better Analysis:** With a standardized format, programatically analyzing test outcomes across multiple platforms becomes more straightforward.
158+
156159
## Support Us
157160

158161
If you find this project useful, consider giving it a GitHub star ⭐. It means a lot to us.

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,20 @@
44
"description": "A WebriverIO JSON test reporter to create test results reports",
55
"repository": {
66
"type": "git",
7-
"url": "git+https://github.com/Ma11hewThomas/wdio-ctrf-json-reporter.git"
7+
"url": "git+https://github.com/ctrf-io/wdio-ctrf-json-reporter.git"
8+
},
9+
"publishConfig": {
10+
"access": "public",
11+
"provenance": true
812
},
913
"homepage": "https://ctrf.io",
1014
"main": "dist/index.js",
1115
"scripts": {
1216
"build": "tsc && eslint . && prettier --write .",
1317
"test": "vitest",
1418
"test:ci": "vitest --watch=false",
15-
"lint": "eslint . && prettier --check ."
19+
"lint": "eslint . && prettier --check .",
20+
"all": "npm run build && npm run test:ci && npm run lint"
1621
},
1722
"files": [
1823
"dist/",

0 commit comments

Comments
 (0)