-
Notifications
You must be signed in to change notification settings - Fork 19
82 lines (63 loc) · 1.89 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version-file: .nvmrc
- name: Use PNPM
uses: pnpm/[email protected]
with:
version: 7
- run: pnpm install
- run: pnpm run lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version-file: .nvmrc
- name: Use PNPM
uses: pnpm/[email protected]
with:
version: 7
- run: pnpm install
- run: pnpm run build
- run: pnpm run test:cypress
- run: pnpm run test:jest --coverage
env:
CI: true
- name: Upload coverage to Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: JS-DevTools/[email protected]
id: publish
if: ${{ github.ref == 'refs/heads/main' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./package.json
tag: latest
access: public
dry-run: false
strategy: all
- name: Tag
if: github.ref_name == 'main' && steps.publish.outputs.type
uses: anothrNick/[email protected]
env:
CUSTOM_TAG: ${{ steps.publish.outputs.version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
if: github.ref_name == 'main' && steps.publish.outputs.type
uses: softprops/[email protected]
with:
tag_name: ${{ steps.publish.outputs.version }}
body:
'Changelog: https://github.com/iendeavor/vue-next-select/blob/${{ steps.publish.outputs.version
}}/CHANGELOG.md'