Skip to content

Commit

Permalink
upgrading yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
MattReimer committed Feb 13, 2024
1 parent f51e219 commit 0726735
Show file tree
Hide file tree
Showing 5 changed files with 1,972 additions and 1,968 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Gatsby Publish
name: Gatsby GHPages Publish

on:
push:
Expand Down Expand Up @@ -27,42 +27,50 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
node-version-file: ./.nvmrc
cache-dependency-path: ./package.json
cache: yarn

- name: Get correct version of Yarn
run: corepack enable; yarn set version berry

# Having a cache can save us a lot of time when installing dependencies
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
with:
# Automatically inject pathPrefix in your Gatsby configuration file.
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: gatsby

- name: Restore cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./.yarn/cache
./public
./.cache
key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }}
restore-keys: |
${{ runner.os }}-gatsby-build-
# This is the yarn install step
- name: Install dependencies
working-directory: .
run: yarn install --immutable --immutable-cache

run: yarn install --immutable
- name: Build with Gatsby
working-directory: .
env:
PREFIX_PATHS: 'true'
run: yarn run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ./public

Expand All @@ -76,4 +84,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
672 changes: 336 additions & 336 deletions .yarn/releases/yarn-4.0.2.cjs → .yarn/releases/yarn-4.1.0.cjs

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.2.cjs
yarnPath: .yarn/releases/yarn-4.1.0.cjs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
"clean": "gatsby clean",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
},
"packageManager": "yarn@4.0.2"
"packageManager": "yarn@4.1.0"
}
Loading

0 comments on commit 0726735

Please sign in to comment.