Update node.js.yml

This commit is contained in:
DrMint 2022-03-06 01:37:16 +01:00 committed by GitHub
parent 5e18039edc
commit e4def9268a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -16,7 +16,7 @@ jobs:
strategy: strategy:
matrix: matrix:
node-version: [12.x, 14.x, 16.x] node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: steps:
@ -26,5 +26,11 @@ jobs:
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'npm' cache: 'npm'
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
NEXT_PUBLIC_URL_CMS: ${{ secrets.NEXT_PUBLIC_URL_CMS }}
NEXT_PUBLIC_URL_IMG: ${{ secrets.NEXT_PUBLIC_URL_IMG }}
NEXT_PUBLIC_URL_SELF: ${{ secrets.NEXT_PUBLIC_URL_SELF }}
URL_GRAPHQL: ${{ secrets.URL_GRAPHQL }}
- run: npm ci - run: npm ci
- run: npm run build --if-present - run: npm run build --if-present