ci: shorten the workflow definition
This commit is contained in:
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@@ -14,13 +14,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# Make sure the release step uses its own credentials.
|
# Make sure the release step uses its own credentials.
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Read .nvmrc
|
|
||||||
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
|
|
||||||
id: nvm
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
cache: npm
|
cache: npm
|
||||||
node-version: ${{ steps.nvm.outputs.NVMRC }}
|
node-version-file: '.nvmrc'
|
||||||
- run: |
|
- run: |
|
||||||
npm ci
|
npm ci
|
||||||
npm run all
|
npm run all
|
||||||
|
|||||||
Reference in New Issue
Block a user