Skip to content

Commit 28353d3

Browse files
authored
ci: automate releases with semantic-release (#3)
Added Semantic Release, including necessary workflow files to automate versioning and publishing.
1 parent 3f1408a commit 28353d3

File tree

5 files changed

+6822
-0
lines changed

5 files changed

+6822
-0
lines changed
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Semantic release workflow
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: read # for checkout
9+
10+
jobs:
11+
semantic-release:
12+
name: semantic-release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write # to be able to publish a GitHub release
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: "22.13.1"
25+
- name: Install dependencies
26+
run: npm clean-install
27+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
28+
run: npm audit signatures
29+
- name: Release
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
run: npx semantic-release
33+

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.vscode
22
*notes.md
3+
node_modules/

0 commit comments

Comments
 (0)