Skip to content

Commit f11657a

Browse files
committed
ci: initial release workflow
1 parent 6b57531 commit f11657a

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

.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.

0 commit comments

Comments
 (0)