-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #689 from tubone24/versionup-gatsbyv4
Versionup gatsbyv4
- Loading branch information
Showing
7 changed files
with
13,036 additions
and
12,650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,18 +11,15 @@ jobs: | |
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
- name: Cache node_modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-node14-build-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.OS }}-node14-build- | ||
${{ runner.OS }} | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
- name: cache clear workaround # https://github.com/gatsbyjs/gatsby/issues/31853#issuecomment-858517772 | ||
run: | | ||
npm install -g rimraf | ||
npm run clean-all | ||
rimraf package-lock.json | ||
- name: npm install | ||
run: | | ||
npm install | ||
|
@@ -44,29 +41,22 @@ jobs: | |
with: | ||
name: main.spec.js.mp4 | ||
path: ./cypress/videos/e2e/main.spec.js.mp4 | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: bundle_analyzer.png | ||
path: ./cypress/snapshots/actual/e2e/main.spec.js/bundle_analyzer.png | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
- name: Cache node_modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.OS }}-build- | ||
${{ runner.OS }} | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
- name: cache clear workaround # https://github.com/gatsbyjs/gatsby/issues/31853#issuecomment-858517772 | ||
run: | | ||
npm install -g rimraf | ||
npm run clean-all | ||
rimraf package-lock.json | ||
- name: "depcheck" | ||
uses: tubone24/[email protected] | ||
with: | ||
|
@@ -95,7 +85,7 @@ jobs: | |
GATSBY_GITHUB_SHA: ${{ github.sha }} | ||
FAUNADB_SERVER_SECRET: ${{secrets.FAUNADB_SERVER_SECRET}} | ||
NETLIFY_ENV: deploy-preview | ||
run: npm run build | ||
run: npm run build:nocache | ||
- name: Deploy to netlify | ||
run: npx netlify-cli deploy --dir=./public > cli.txt | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.