Skip to content

Commit

Permalink
fix: Clean the cached versions on Gatsby build (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
Santhosh-testsigma authored Nov 26, 2024
1 parent 3cec444 commit 962f99b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "CD"
name: 'CD'
on:
push:
branches:
- "main"
- 'main'
jobs:
Deploy:
runs-on: ubuntu-latest
Expand All @@ -15,13 +15,13 @@ jobs:
- name: Setup Node 18
uses: actions/setup-node@v2
with:
node-version: "18"
node-version: '18'
- name: Install dependencies
run: |
npm i --force --unsafe-perm
- name: Force installing sharp
run: npm install --ignore-scripts=false --verbose [email protected] --unsafe-perm --force
- name: "Create env file"
- name: 'Create env file'
run: |
rm -rf .env
touch .env
Expand All @@ -41,11 +41,11 @@ jobs:
cat .env
- name: Build
run: |
PREFIX_PATHS=true npm run build && npm run deploy
PREFIX_PATHS=true npm run clean && npm run build && npm run deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "us-east-1"
AWS_DEFAULT_REGION: 'us-east-1'
AWS_DEFAULT_OUTPUT: json
TYPESENSE_HOST: ${{ secrets.TYPESENSE_HOST }}
TYPESENSE_PORT: ${{ secrets.TYPESENSE_PORT }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/staging-cd.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "Staging CD"
name: 'Staging CD'
on:
push:
branches:
- "dev"
- 'dev'
jobs:
StagingDeploy:
runs-on: ubuntu-latest
Expand All @@ -15,14 +15,14 @@ jobs:
- name: Setup Node 18
uses: actions/setup-node@v2
with:
node-version: "18"
node-version: '18'
- name: Install dependencies
run: |
rm -rf .cache node_modules
npm i --force --unsafe-perm
- name: Force installing sharp
run: npm install --ignore-scripts=false --verbose [email protected] --unsafe-perm --force
- name: "Create env file"
- name: 'Create env file'
run: |
rm -rf .env
touch .env
Expand All @@ -44,11 +44,11 @@ jobs:
run: sed -i 's/localhost/website.testsigma.com/g' src/environment.ts
- name: Build
run: |
PREFIX_PATHS=true npm run build && npm run deploy
PREFIX_PATHS=true npm run clean && npm run build && npm run deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.WEBSITE_STAGING_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.WEBSITE_STAGING_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "us-east-1"
AWS_DEFAULT_REGION: 'us-east-1'
AWS_DEFAULT_OUTPUT: json
TYPESENSE_HOST: ${{ secrets.WEBSITE_STAGING_TYPESENSE_HOST }}
TYPESENSE_PORT: ${{ secrets.WEBSITE_STAGING_TYPESENSE_PORT }}
Expand Down

0 comments on commit 962f99b

Please sign in to comment.