-
Notifications
You must be signed in to change notification settings - Fork 46
33 lines (30 loc) · 840 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: test
on: [push, pull_request]
env:
FORCE_COLOR: 3
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '15.x'
- run: npm ci
- run: npm run prettier
- run: npm run eslint
- run: npm run build
- run: npm test
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v2
with:
name: snapshots
path: src/test/snapshots
- name: release
if: github.event_name == 'push' && github.repository_owner == 'felixfbecker' && github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release