Skip to content

Commit 5c7a009

Browse files
added release action
1 parent a0e5542 commit 5c7a009

File tree

5 files changed

+15860
-1629
lines changed

5 files changed

+15860
-1629
lines changed

.github/workflows/release.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Release
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-18.04
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v1
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 15
21+
- name: Install dependencies
22+
run: npm ci
23+
- name: Run tests
24+
run: npm test
25+
- name: Release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
run: npx semantic-release

.github/workflows/node.js.yml renamed to .github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Node.js CI
4+
name: Test
55

66
on:
77
push:

.releaserc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"branches": ["main"]
3+
}

0 commit comments

Comments
 (0)