Update node.js.yml
This commit is contained in:
parent
e4def9268a
commit
d502655dff
|
@ -26,11 +26,19 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
- name: Create .env.local file
|
||||||
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
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build --if-present
|
- run: npm run build --if-present
|
||||||
|
|
Loading…
Reference in New Issue