Skip to content
Draft
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
11 changes: 6 additions & 5 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ jobs:
submodules: "recursive"
fetch-depth: 0 # Fetch all history for all branches

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- run: npm i -g "npm@$(jq -r .engines.npm < package.json)"
- run: corepack enable

- run: mkdir -p ~/.npm
- run: mkdir -p ~/.cache/Cypress
Expand Down Expand Up @@ -133,10 +134,10 @@ jobs:
done

# the json may be poorly formatted now, so we need to fix it
npm i
npm run -w @prosopo/scripts build
npm run -w @prosopo/lint build
npm run lint-fix
pnpm install
pnpm --filter @prosopo/scripts run build
pnpm --filter @prosopo/lint run build
pnpm run lint-fix

# commit the version changes
git add .
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@ jobs:
- run: mkdir -p ~/.cache/Cypress

# don't restore the cache, otherwise we get artifacts left over from the previous run sit in the cache for eternity. Do a clean build every time.
- run: npm cache clean --force
- run: pnpm store prune

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- run: npm i -g "npm@$(jq -r .engines.npm < package.json)"
- run: corepack enable

- run: npm ci
- run: pnpm install --frozen-lockfile

# install cypress so we don't have to do that every time
- run: npx cypress install
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,16 @@ jobs:
exit 1
fi

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- run: npm i -g "npm@$(jq -r .engines.npm < package.json)"
- run: corepack enable

- run: npm ci
- run: pnpm install --frozen-lockfile

# check everything builds
- run: npm run build
- run: pnpm run build

- name: Purge gh prerelease
if: ${{ steps.env.outputs.gh_prerelease }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ jobs:
restore-keys: |
npm-${{ runner.os }}-${{ runner.arch }}-

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- run: npm i -g "npm@$(jq -r .engines.npm < package.json)"
- run: corepack enable

- run: npm ci
- run: pnpm install --frozen-lockfile

- run: npm run lint
- run: pnpm run lint

- run: npm run build
- run: pnpm run build
3 changes: 2 additions & 1 deletion .github/workflows/update_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ jobs:
with:
submodules: "recursive"

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'

- run: npm i -g "npm@$(jq -r .engines.npm < package.json)"
- run: corepack enable

- name: PR main into staging
run: |
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Cache-Control = "public, max-age=604800, immutable"

[build]
command = "NODE_OPTIONS=--max_old_space_size=4096 npm run build"
command = "NODE_OPTIONS=--max_old_space_size=4096 pnpm run build"
ignore = "git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- /"

[[redirects]]
Expand Down
Loading