forked from zaach/jsonlint
-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (38 loc) · 959 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
36
37
38
39
40
name: Test or Release
on:
push:
branches:
- master
tags-ignore:
- '**'
paths-ignore:
- '**/*.md'
- LICENSE
pull_request:
jobs:
test-or-release:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- run: pnpm i --frozen-lockfile --no-verify-store-integrity
- run: npm run build
- run: npm test
- uses: codecov/codecov-action@v4
if: ${{ github.ref_name == 'master' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: prantlf/publish-release-action@v1
if: ${{ github.ref_name == 'master' }}
with:
no-archives: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}