Skip to content

Commit f5485b2

Browse files
committed
chore: add semantic release
1 parent ea5922d commit f5485b2

File tree

4 files changed

+11803
-2498
lines changed

4 files changed

+11803
-2498
lines changed

.github/workflows/release.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
env:
8+
HUSKY: 0
9+
10+
jobs:
11+
release:
12+
permissions:
13+
contents: write # for release publishing
14+
15+
name: Release
16+
env:
17+
commitmsg: ${{ github.event.head_commit.message }}
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: lts/*
28+
cache: 'yarn'
29+
- name: Install dependencies Node
30+
run: yarn install --frozen-lockfile --non-interactive
31+
- run: yarn build
32+
- name: Release Node
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
run: npx semantic-release

0 commit comments

Comments
 (0)