-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 855 Bytes
/
ci.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
34
35
name: Test or Release
on:
- push
- pull_request
jobs:
test-or-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
- name: Install PNPM
uses: pnpm/action-setup@v2
with:
version: latest
run_install: |
- args: [--frozen-lockfile, --no-verify-store-integrity]
- name: Test
run: npm test
- name: Coverage
uses: codecov/codecov-action@v3
- name: Publish
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 19
branches: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}