Skip to content

Commit 7f71966

Browse files
committed
feat: add created release automatically
1 parent 657da02 commit 7f71966

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/create-release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Create release"
2+
on:
3+
push:
4+
branches:
5+
- master
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+
21+
- name: Install dependencies
22+
run: npm install && npm install --save-dev semantic-release @semantic-release/changelog @semantic-release/git -D
23+
- name: Release
24+
env:
25+
GH_TOKEN: ${{ secrets.PACKAGIST_PUBLIC_RELEASE_GH }}
26+
GITHUB_TOKEN: ${{ secrets.PACKAGIST_PUBLIC_RELEASE_GH }}
27+
run: npx semantic-release

0 commit comments

Comments
 (0)