Skip to content

Commit

Permalink
set environment variables in github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholeuf committed Feb 18, 2024
1 parent dc1b4c8 commit 27d6360
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "yarn"
node-version: '18.x'
cache: 'yarn'
- run: yarn install --immutable
- name: Use variables
run: |
echo "NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME : $NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME"
echo "NEXT_PUBLIC_SITE_URL: $NEXT_PUBLIC_SITE_URL"
env:
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: ${{ vars.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME }}
NEXT_PUBLIC_SITE_URL: ${{ vars.NEXT_PUBLIC_SITE_URL }}

- run: yarn test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 27d6360

Please sign in to comment.