Skip to content

Commit 85062fb

Browse files
committed
ci: semantic-released added for the first time
1 parent f199a49 commit 85062fb

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
5+
permissions:
6+
contents: read # for checkout
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write # to be able to publish a GitHub release
14+
issues: write # to be able to comment on released issues
15+
pull-requests: write # to be able to comment on released pull requests
16+
id-token: write # to enable use of OIDC for npm provenance
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: "lts/*"
26+
- name: Install dependencies
27+
run: npm install
28+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
29+
run: npm audit signatures
30+
- name: Building
31+
run: npm run build
32+
- name: Release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
run: npx semantic-release

.releaserc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"release": {
3+
"branches": [
4+
"main"
5+
]
6+
},
7+
"plugins": [
8+
"@semantic-release/npm",
9+
{
10+
"pkgRoot": "./lib"
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)