Skip to content

Commit 0d0340b

Browse files
committed
1 parent 02f8909 commit 0d0340b

File tree

4 files changed

+31
-1789
lines changed

4 files changed

+31
-1789
lines changed

.github/workflows/release.yml

+10-18
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
1-
name: Release npm package
1+
name: Tests
22

3-
on:
4-
push:
5-
branches:
6-
- main
3+
on: push
74

85
jobs:
9-
release:
10-
name: Release
6+
lint:
7+
name: Run tests
118
runs-on: ubuntu-latest
9+
container: 'node:14-alpine'
1210
steps:
13-
- uses: actions/checkout@master
14-
- uses: actions/setup-node@v1
15-
with:
16-
node-version: "14.x"
17-
- run: npm ci
18-
- run: npm run build --if-present
19-
- run: npm test
20-
- run: npx semantic-release --branches main
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
11+
- uses: actions/checkout@v2
12+
- name: npm ci
13+
run: npm ci
14+
- name: npm test
15+
run: npm test

.github/workflows/test.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Tests
2+
3+
on: push
4+
5+
jobs:
6+
lint:
7+
name: Run tests
8+
runs-on: ubuntu-latest
9+
container: 'node:14-alpine'
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: npm ci
13+
run: npm ci
14+
- name: npm test
15+
run: npm test

0 commit comments

Comments
 (0)