Update node.js.yml
This commit is contained in:
parent
29faaf8051
commit
9ecabfc2f3
|
@ -26,20 +26,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- name: Create .env.local file
|
- run: npm ci
|
||||||
|
- run: npm run build --if-present
|
||||||
env:
|
env:
|
||||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
NEXT_PUBLIC_URL_CMS: ${{ secrets.NEXT_PUBLIC_URL_CMS }}
|
NEXT_PUBLIC_URL_CMS: ${{ secrets.NEXT_PUBLIC_URL_CMS }}
|
||||||
NEXT_PUBLIC_URL_IMG: ${{ secrets.NEXT_PUBLIC_URL_IMG }}
|
NEXT_PUBLIC_URL_IMG: ${{ secrets.NEXT_PUBLIC_URL_IMG }}
|
||||||
NEXT_PUBLIC_URL_SELF: ${{ secrets.NEXT_PUBLIC_URL_SELF }}
|
NEXT_PUBLIC_URL_SELF: ${{ secrets.NEXT_PUBLIC_URL_SELF }}
|
||||||
URL_GRAPHQL: ${{ secrets.URL_GRAPHQL }}
|
URL_GRAPHQL: ${{ secrets.URL_GRAPHQL }}
|
||||||
run: |
|
|
||||||
touch .env.local
|
|
||||||
echo ACCESS_TOKEN=${{ secrets.ACCESS_TOKEN }} >> .env.local
|
|
||||||
echo NEXT_PUBLIC_URL_CMS=${{ secrets.NEXT_PUBLIC_URL_CMS }} >> .env.local
|
|
||||||
echo NEXT_PUBLIC_URL_IMG=${{ secrets.NEXT_PUBLIC_URL_IMG }} >> .env.local
|
|
||||||
echo NEXT_PUBLIC_URL_SELF=${{ secrets.NEXT_PUBLIC_URL_SELF }} >> .env.local
|
|
||||||
echo URL_GRAPHQL=${{ secrets.URL_GRAPHQL }} >> .env.local
|
|
||||||
cat .env.local
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm run build --if-present
|
|
||||||
|
|
Loading…
Reference in New Issue