File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 9
9
build :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/checkout@v2
13
- - id : nvm
14
- run : echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
15
- - uses : actions/setup-node@v2-beta
12
+ - uses : actions/checkout@v3
13
+ - uses : actions/setup-node@v3
16
14
with :
17
- node-version : ' ${{ steps.nvm.outputs.NVMRC }} '
18
- - uses : actions/cache@v2
15
+ node-version-file : ' .nvmrc '
16
+ - uses : actions/cache@v3
19
17
with :
20
18
path : ~/.npm
21
19
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22
20
restore-keys : |
23
21
${{ runner.os }}-node-
24
- - name : install, build, test
25
- run : |
26
- npm install --no-optional --no-audit --no-fund --progress=false
27
- npm run lint
28
- npm run test
29
- npm run test:rules
30
- npm run build:docs
31
- npm pack --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' && rm *.tgz
22
+ - run : npm ci
23
+ - run : npm run lint
24
+ - run : npm run test
25
+ - run : npm run test:rules
26
+ - run : npm run build:docs
27
+ - run : npm pack --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' && rm *.tgz
You can’t perform that action at this time.
0 commit comments