Skip to content

Commit

Permalink
Use package json command
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarvarela committed Feb 7, 2025
1 parent f6a3e02 commit a1a31de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
GITHUB_HEAD_REF: ${{ github.head_ref }}

- name: Build using Netlify
run: netlify build --context ${{ inputs.netlify-context }} --offline
run: npm run build --context=${{ inputs.netlify-context }}
working-directory: site/gatsby-site
env:
NETLIFY_SITE_ID: ${{ vars.NETLIFY_SITE_ID }}
Expand Down Expand Up @@ -134,6 +134,9 @@ jobs:
SITE_URL: ${{ inputs.site-url || vars.SITE_URL }}
NEXTAUTH_URL: ${{ inputs.site-url || vars.SITE_URL }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
MAILERSEND_API_KEY: dummy # these are necessary for codegen to work
NOTIFICATIONS_SENDER_NAME: dummy
NOTIFICATIONS_SENDER: dummy

- name: Build size
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: npm install netlify-cli -g

- name: Build using Netlify
run: netlify build --context ${{ inputs.netlify-context }} --offline
run: npm run build --context=${{ inputs.netlify-context }}
working-directory: site/gatsby-site
env:
INSTRUMENT: true
Expand Down

0 comments on commit a1a31de

Please sign in to comment.