Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverted "fix: Clean the cached versions on Gatsby build" #543

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 clean && npm run build && npm run deploy
PREFIX_PATHS=true 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 clean && npm run build && npm run deploy
PREFIX_PATHS=true 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