Skip to content

Commit 70fd138

Browse files
committed
chore: add release workflow
1 parent 39371bd commit 70fd138

File tree

4 files changed

+57
-6
lines changed

4 files changed

+57
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A Playwright JSON test reporter to create test reports that follow the CTRF stan
2525

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

3030
</p>
3131
</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: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "playwright-ctrf-json-reporter",
3-
"version": "0.0.24",
3+
"version": "0.0.25",
44
"description": "A Playwright JSON test reporter to create test results reports",
55
"main": "dist/index.js",
66
"scripts": {
@@ -9,9 +9,17 @@
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 lint && npm run format-check && npm run test && npm run build"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "git+https://github.com/ctrf-io/playwright-ctrf-json-reporter.git"
18+
},
19+
"publishConfig": {
20+
"access": "public",
21+
"provenance": true
1322
},
14-
"repository": "github:ctrf-io/playwright-ctrf-json-report",
1523
"homepage": "https://ctrf.io",
1624
"files": [
1725
"dist/",

0 commit comments

Comments
 (0)