Skip to content

Commit 3edecef

Browse files
Feat/release (#10)
* ci: initial release workflow
1 parent 6b57531 commit 3edecef

File tree

5 files changed

+7
-18
lines changed

5 files changed

+7
-18
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
node-version: [20.19.0, 21.x]
13+
node-version: [20.19.0, 21.x, 22.x, 23.x, 24.x]
1414

1515
steps:
1616
- name: Checkout code
@@ -31,9 +31,6 @@ jobs:
3131
- name: Run tests
3232
run: npm test
3333

34-
- name: Run tests with coverage
35-
run: npm run test:coverage
36-
3734
- name: Publish Test Report
3835
uses: ctrf-io/github-test-reporter@v1
3936
with:

.github/workflows/release.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
name: Publish npm Release
1+
name: Release
22

33
on:
4-
workflow_dispatch:
54
push:
65
tags:
76
- 'v*.*.*'
@@ -29,21 +28,14 @@ jobs:
2928
- name: Install dependencies
3029
run: npm ci
3130

32-
- name: Run tests
31+
- name: Run all checks and build
3332
run: npm run all
3433

3534
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
3635
run: npm audit signatures
3736

3837
- name: Publish to npm
39-
run: |
40-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
41-
echo "🧪 Test mode: Dry run npm publish"
42-
npm publish --dry-run --provenance
43-
else
44-
echo "🚀 Production: Publishing to npm"
45-
npm publish --provenance
46-
fi
38+
run: npm publish --provenance
4739

4840
- name: Create GitHub Release
4941
uses: softprops/action-gh-release@v2

CHANGELOG.md

Whitespace-only changes.

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ctrf",
3-
"version": "0.0.16",
3+
"version": "0.0.17",
44
"description": "Common library for working with CTRF reports",
55
"type": "module",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)