-
Notifications
You must be signed in to change notification settings - Fork 19
70 lines (55 loc) · 1.66 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
name: CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- run: yarn install
- run: yarn lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- run: yarn install
- run: yarn build
- run: yarn test:cypress
- run: yarn test:jest --coverage
env:
CI: true
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: JS-DevTools/npm-publish@v2
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/github-tag-action@v1
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/action-gh-release@v1
with:
tag_name: ${{ steps.publish.outputs.version }}
body:
'Changelog: https://github.com/iendeavor/vue-next-select/blob/${{ steps.publish.outputs.version
}}/CHANGELOG.md'