File tree Expand file tree Collapse file tree 7 files changed +172503
-2898
lines changed Expand file tree Collapse file tree 7 files changed +172503
-2898
lines changed Original file line number Diff line number Diff line change 8
8
- default
9
9
pull_request :
10
10
branches :
11
- - ' ** '
11
+ - " ** "
12
12
13
13
jobs :
14
14
test :
15
15
runs-on : ubuntu-latest
16
16
strategy :
17
17
matrix :
18
- node-version : [13.x]
18
+ node-version :
19
+ - 18
19
20
steps :
20
- - uses : actions/checkout@v1
21
- - name : Use Node.js ${{ matrix.node-version }}
22
- uses : actions/setup-node@v1
21
+ - name : Checkout
22
+ uses : actions/checkout@v2
23
+ - name : Setup node ${{ matrix.node-version }}
24
+ uses : actions/setup-node@v2
23
25
with :
24
26
node-version : ${{ matrix.node-version }}
25
- - name : Restore dependencies
26
- uses : actions/cache@v1
27
- with :
28
- path : node_modules
29
- key : ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
30
- restore-keys : |
31
- ${{ runner.os }}-node-
32
27
- name : Install dependencies
33
- run : yarn install --frozen-lockfile
28
+ run : npm install
34
29
- name : Build
35
- run : yarn build
30
+ run : npm run build
36
31
- name : Typecheck
37
32
uses : ./
38
33
- name : Typecheck projectFixtures/sub
39
34
uses : ./
40
35
with :
41
36
project : projectFixtures/sub
42
-
Original file line number Diff line number Diff line change @@ -3,32 +3,29 @@ name: Release
3
3
on :
4
4
release :
5
5
types : [published, edited]
6
+ workflow_dispatch :
6
7
7
8
jobs :
8
9
build :
9
10
runs-on : ubuntu-latest
10
11
strategy :
11
12
matrix :
12
- node-version : [13.x]
13
+ node-version :
14
+ - 18
13
15
steps :
14
16
- name : Checkout
15
17
uses : actions/checkout@v2
18
+ - name : Setup node ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v2
16
20
with :
17
- ref : ${{ github.event.release.tag_name }}
18
- - name : Restore dependencies
19
- id : cache-modules
20
- uses : actions/checkout@v2
21
- with :
22
- path : node_modules
23
- key : ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
21
+ node-version : ${{ matrix.node-version }}
24
22
- name : Install dependencies
25
- if : steps.cache-modules.outputs.cache-hit != 'true'
26
23
run : npm install
27
24
- name : Build
28
25
run : npm run build
29
26
- name : Release
30
27
uses : JasonEtco/build-and-tag-action@v1
31
28
with :
32
- setup : ' '
29
+ setup : " "
33
30
env :
34
31
GITHUB_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments