forked from recogito/recogito-js
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 898 Bytes
/
cicd.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
name: CI
on:
push:
workflow_dispatch:
jobs:
ci:
name: ci
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: echo "::remove-matcher owner=tsc::"
- run: echo "::remove-matcher owner=eslint-compact::"
- run: echo "::remove-matcher owner=eslint-stylish::"
- run: node --version
- run: npm clean-install
- run: npm run 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