Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsingh132 authored Oct 10, 2024
1 parent 105dc73 commit 9f90f78
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Use Environment Variables
run: |
echo "Convex var: $NEXT_PUBLIC_CONVEX_URL"
echo "Clerk var: $NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY"
echo "Convex deployment: $CONVEX_DEPLOYMENT"
- run: npm ci
- name: Build NextJS
run: npm run build --if-present
env:
NEXT_PUBLIC_CONVEX_URL: ${{ vars.NEXT_PUBLIC_CONVEX_URL }}
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ vars.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
CONVEX_DEPLOYMENT: ${{ secrets.CONVEX_DEPLOYMENT }}
# - name: Create .env file
# run: |
# touch .env
# echo NEXT_PUBLIC_CONVEX_URL=${{ vars.NEXT_PUBLIC_CONVEX_URL }} >> .env
# echo NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=${{ vars.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }} >> .env
# echo CONVEX_DEPLOYMENT=${{ secrets.CONVEX_DEPLOYMENT }} >> .env
- run: npm ci
- run: npm run build --if-present
- run: npm test --if-present

0 comments on commit 9f90f78

Please sign in to comment.