Skip to content

Commit 69a3c8c

Browse files
committed
ci: add semantic-versioning release to GH action
1 parent e53ccf9 commit 69a3c8c

File tree

5 files changed

+13779
-4257
lines changed

5 files changed

+13779
-4257
lines changed

.github/workflows/tests.yml

+33
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,36 @@ jobs:
7373
with:
7474
path: './coverage/lcov.info'
7575
min_coverage: 95
76+
77+
release:
78+
name: Release
79+
concurrency: release
80+
if: ${{ github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
81+
runs-on: ubuntu-latest
82+
needs: [lint, unittest]
83+
permissions:
84+
contents: write # to be able to publish a GitHub release
85+
issues: write # to be able to comment on released issues
86+
pull-requests: write # to be able to comment on released pull requests
87+
id-token: write # to enable use of OIDC for npm provenance
88+
steps:
89+
- name: Checkout
90+
uses: actions/checkout@v4
91+
with:
92+
fetch-depth: 0
93+
- name: Setup Node.js
94+
uses: actions/setup-node@v4
95+
with:
96+
node-version: 22
97+
cache: 'npm'
98+
- name: Install dependencies
99+
run: npm clean-install
100+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
101+
run: npm audit signatures
102+
- name: Release
103+
env:
104+
NPM_CONFIG_PROVENANCE: true
105+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
107+
run: npx semantic-release
108+

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Changelog
1+
# Changelog
22

33
## 5.0.0
44

0 commit comments

Comments
 (0)