File tree 4 files changed +14
-12
lines changed
4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v2
15
+ - run : echo ::set-output name=nvmrc::$(cat .nvmrc)
16
+ id : nvm
15
17
- uses : actions/setup-node@v2
16
18
with :
17
- node-version : " 16.x "
19
+ node-version : " ${{ steps.nvm.outputs.nvmrc }} "
18
20
- run : npm install eslint-config-ybiquitous @typescript-eslint/eslint-plugin
19
21
- run : npx eslint .
Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v2
15
+ - run : echo ::set-output name=nvmrc::$(cat .nvmrc)
16
+ id : nvm
15
17
- uses : actions/setup-node@v2
18
+ with :
19
+ node-version : " ${{ steps.nvm.outputs.nvmrc }}"
16
20
# https://github.com/actions/toolkit/blob/2f164000dcd42fb08287824a3bc3030dbed33687/docs/commands.md#problem-matchers
17
21
# https://gist.github.com/ybiquitous/184a337662bfcafdd3d227253f9401ff
18
22
- name : Set up Problem Matchers for stylelint
Original file line number Diff line number Diff line change @@ -11,16 +11,11 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v2
14
- - run : |
15
- nvm install --latest-npm --no-progress
16
- echo "PATH=${NVM_BIN}:${PATH}" >> $GITHUB_ENV
17
- shell: bash --login {0}
14
+ - run : echo ::set-output name=nvmrc::$(cat .nvmrc)
15
+ id : nvm
16
+ - uses : actions/setup-node@v2
17
+ with :
18
+ node-version : " ${{ steps.nvm.outputs.nvmrc }}"
18
19
- run : npm ci
19
- - name : Set up Problem Matchers for tsc
20
- run : |
21
- curl -fLO "https://raw.githubusercontent.com/actions/setup-node/5c355be17065acf11598c7a9bb47112fbcf2bbdc/.github/tsc.json"
22
- mv tsc.json "${HOME}/tsc.json"
23
- echo "::add-matcher::${HOME}/tsc.json"
24
- - run : npm run lint:types
25
- - run : npm run lint
20
+ - run : npm run lint-ci
26
21
- run : npm run build
Original file line number Diff line number Diff line change 8
8
"postbuild" : " cp -v _redirects dist/" ,
9
9
"static" : " npm run build && npx http-server ./dist" ,
10
10
"format" : " npm-run-all --print-label --parallel lint:*:fix prettier:write" ,
11
+ "lint-ci" : " npm-run-all --silent --parallel lint:* prettier:check" ,
11
12
"lint" : " npm-run-all --print-label --parallel lint:* prettier:check" ,
12
13
"lint:md" : " remark ." ,
13
14
"lint:md:fix" : " remark . --output" ,
You can’t perform that action at this time.
0 commit comments