Skip to content

Commit c92cf0d

Browse files
committed
add release workflow
1 parent b76c18c commit c92cf0d

File tree

3 files changed

+54
-4
lines changed

3 files changed

+54
-4
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

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": "handlebars-helpers-ctrf",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "A collection of Handlebars helpers for working with Common Test Report Format",
55
"type": "module",
66
"main": "dist/index.js",
@@ -31,7 +31,14 @@
3131
"types/",
3232
"README.md"
3333
],
34-
"repository": "github:ctrf-io/handlebars-helpers-ctrf",
34+
"repository": {
35+
"type": "git",
36+
"url": "git+https://github.com/ctrf-io/handlebars-helpers-ctrf.git"
37+
},
38+
"publishConfig": {
39+
"access": "public",
40+
"provenance": true
41+
},
3542
"homepage": "https://ctrf.io",
3643
"author": "Matthew Thomas",
3744
"license": "MIT",

0 commit comments

Comments
 (0)