Skip to content

Commit f9dbecb

Browse files
committed
chore: implement semantic-release
1 parent 7230cda commit f9dbecb

File tree

6 files changed

+25017
-8978
lines changed

6 files changed

+25017
-8978
lines changed

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/npm-push.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/npm-release.yml

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

0 commit comments

Comments
 (0)