Skip to content

Commit 48fb7a6

Browse files
committed
fix: added release action
1 parent f3e0c5f commit 48fb7a6

File tree

1 file changed

+13
-31
lines changed

1 file changed

+13
-31
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,23 @@ on:
33
push:
44
branches:
55
- master
6-
- sre/fixes
7-
86
jobs:
9-
test:
7+
release:
8+
name: Release
109
runs-on: ubuntu-latest
1110
steps:
12-
- uses: actions/checkout@v3
13-
- name: Use Node.js
14-
uses: actions/setup-node@v3
15-
with:
16-
node-version: '14.x'
17-
- run: npm install
18-
- run: npm run test
19-
20-
linter:
21-
name: Run linter
22-
runs-on: ubuntu-latest
23-
24-
steps:
25-
- name: Check out Git repository
11+
- name: Checkout
2612
uses: actions/checkout@v2
27-
28-
- name: Set up Node.js
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node.js
2916
uses: actions/setup-node@v1
3017
with:
3118
node-version: 12
32-
- run: npm install && npm run lint
33-
34-
tag:
35-
runs-on: ubuntu-latest
36-
needs: [ linter ]
37-
steps:
38-
- uses: actions/checkout@v3
39-
- name: Bump version and push tag
40-
id: tag_version
41-
uses: mathieudutour/github-tag-action@v6.0
42-
with:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Install dependencies
20+
run: npm install
21+
- name: Release
22+
env:
23+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
24+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25+
run: npx semantic-release

0 commit comments

Comments
 (0)