Skip to content

Commit 4cbed95

Browse files
committed
feat: add gitHub actions automatically release
1 parent 848865d commit 4cbed95

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Create release"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
persist-credentials: false
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 14.17
20+
- name: Install dependencies
21+
run: npm install && npm install --save-dev semantic-release @semantic-release/changelog @semantic-release/git -D
22+
- name: Release
23+
env:
24+
GH_TOKEN: ${{ secrets.PACKAGIST_PUBLIC_RELEASE_GH }}
25+
GITHUB_TOKEN: ${{ secrets.PACKAGIST_PUBLIC_RELEASE_GH }}
26+
run: npx semantic-release

0 commit comments

Comments
 (0)