-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 932 Bytes
/
ci.yaml
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
name: CI
on:
push:
workflow_dispatch:
jobs:
ci:
name: ci
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- run: echo "::remove-matcher owner=tsc::"
- run: echo "::remove-matcher owner=eslint-compact::"
- run: echo "::remove-matcher owner=eslint-stylish::"
- run: node --version
- run: yarn --version
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn test
- run: yarn build
- if: startsWith(github.ref, 'refs/tags/')
name: set package.json version by tag
run: npm version --allow-same-version --no-commit-hooks --no-git-tag-version from-git
- if: startsWith(github.ref, 'refs/tags/')
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_API_KEY }}
package: package.json
access: public