@@ -3,7 +3,7 @@ name: Main CI
3
3
on :
4
4
push :
5
5
branches : [$default-branch]
6
- tags : v[0-9]+.[0-9]+.[0-9]+
6
+ # tags: v[0-9]+.[0-9]+.[0-9]+
7
7
pull_request :
8
8
branches : [$default-branch]
9
9
@@ -29,76 +29,76 @@ jobs:
29
29
${{ runner.os }}-yarn-
30
30
- run : yarn install --frozen-lockfile --prefer-offline
31
31
- run : yarn compile
32
- lint :
33
- name : Lint code
34
- runs-on : ubuntu-latest
35
- steps :
36
- - uses : actions/checkout@v2
37
- - name : Use Node.js
38
- uses : actions/setup-node@v1
39
- with :
40
- node-version : 14.x
41
- - name : Get yarn cache directory path
42
- id : yarn-cache-dir-path
43
- run : echo "::set-output name=dir::$(yarn cache dir)"
44
- - uses : actions/cache@v2
45
- id : yarn-cache
46
- with :
47
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
48
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
49
- restore-keys : |
50
- ${{ runner.os }}-yarn-
51
- - run : yarn install --frozen-lockfile --prefer-offline
52
- - run : yarn lint
53
- test :
54
- name : Run tests (Node.js)
55
- runs-on : ubuntu-latest
56
- strategy :
57
- matrix :
58
- node-version : [14.x, 15.x]
59
- steps :
60
- - uses : actions/checkout@v2
61
- - name : Use Node.js ${{ matrix.node-version }}
62
- uses : actions/setup-node@v1
63
- with :
64
- node-version : ${{ matrix.node-version }}
65
- - name : Get yarn cache directory path
66
- id : yarn-cache-dir-path
67
- run : echo "::set-output name=dir::$(yarn cache dir)"
68
- - uses : actions/cache@v2
69
- id : yarn-cache
70
- with :
71
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
72
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
73
- restore-keys : |
74
- ${{ runner.os }}-yarn-
75
- - run : yarn install --frozen-lockfile --prefer-offline
76
- - run : yarn test
77
- - name : Codecov
78
- uses : codecov/codecov-action@v1
79
- publish :
80
- name : Publish to npm
81
- runs-on : ubuntu-latest
82
- if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
83
- steps :
84
- - uses : actions/checkout@v2
85
- - name : Use Node.js
86
- uses : actions/setup-node@v1
87
- with :
88
- node-version : 14.x
89
- registry-url : ' https://registry.npmjs.org'
90
- - name : Get yarn cache directory path
91
- id : yarn-cache-dir-path
92
- run : echo "::set-output name=dir::$(yarn cache dir)"
93
- - uses : actions/cache@v2
94
- id : yarn-cache
95
- with :
96
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
97
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
98
- restore-keys : |
99
- ${{ runner.os }}-yarn-
100
- - run : yarn install --frozen-lockfile --prefer-offline
101
- - run : yarn compile
102
- - run : yarn publish
103
- env :
104
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
32
+ # lint:
33
+ # name: Lint code
34
+ # runs-on: ubuntu-latest
35
+ # steps:
36
+ # - uses: actions/checkout@v2
37
+ # - name: Use Node.js
38
+ # uses: actions/setup-node@v1
39
+ # with:
40
+ # node-version: 14.x
41
+ # - name: Get yarn cache directory path
42
+ # id: yarn-cache-dir-path
43
+ # run: echo "::set-output name=dir::$(yarn cache dir)"
44
+ # - uses: actions/cache@v2
45
+ # id: yarn-cache
46
+ # with:
47
+ # path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
48
+ # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
49
+ # restore-keys: |
50
+ # ${{ runner.os }}-yarn-
51
+ # - run: yarn install --frozen-lockfile --prefer-offline
52
+ # - run: yarn lint
53
+ # test:
54
+ # name: Run tests (Node.js)
55
+ # runs-on: ubuntu-latest
56
+ # strategy:
57
+ # matrix:
58
+ # node-version: [14.x, 15.x]
59
+ # steps:
60
+ # - uses: actions/checkout@v2
61
+ # - name: Use Node.js ${{ matrix.node-version }}
62
+ # uses: actions/setup-node@v1
63
+ # with:
64
+ # node-version: ${{ matrix.node-version }}
65
+ # - name: Get yarn cache directory path
66
+ # id: yarn-cache-dir-path
67
+ # run: echo "::set-output name=dir::$(yarn cache dir)"
68
+ # - uses: actions/cache@v2
69
+ # id: yarn-cache
70
+ # with:
71
+ # path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
72
+ # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
73
+ # restore-keys: |
74
+ # ${{ runner.os }}-yarn-
75
+ # - run: yarn install --frozen-lockfile --prefer-offline
76
+ # - run: yarn test
77
+ # - name: Codecov
78
+ # uses: codecov/codecov-action@v1
79
+ # publish:
80
+ # name: Publish to npm
81
+ # runs-on: ubuntu-latest
82
+ # if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
83
+ # steps:
84
+ # - uses: actions/checkout@v2
85
+ # - name: Use Node.js
86
+ # uses: actions/setup-node@v1
87
+ # with:
88
+ # node-version: 14.x
89
+ # registry-url: 'https://registry.npmjs.org'
90
+ # - name: Get yarn cache directory path
91
+ # id: yarn-cache-dir-path
92
+ # run: echo "::set-output name=dir::$(yarn cache dir)"
93
+ # - uses: actions/cache@v2
94
+ # id: yarn-cache
95
+ # with:
96
+ # path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
97
+ # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
98
+ # restore-keys: |
99
+ # ${{ runner.os }}-yarn-
100
+ # - run: yarn install --frozen-lockfile --prefer-offline
101
+ # - run: yarn compile
102
+ # - run: yarn publish
103
+ # env:
104
+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments