Skip to content

Commit

Permalink
ci: dump pnpm version
Browse files Browse the repository at this point in the history
  • Loading branch information
AprilNEA committed Dec 12, 2023
1 parent cbe41a2 commit 4a8012b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 37 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/frontend-bundle-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Frontend Bundle Analysis
on:
pull_request:
push:
branches: [v3]
branches: [
v3
]
workflow_dispatch:

defaults:
Expand Down Expand Up @@ -45,20 +47,7 @@ jobs:
- name: Install Dependencies
run: pnpm install

- name: Restore Next.js Build
uses: actions/cache@v3
id: restore-build-cache
env:
cache-name: cache-next-build
with:
# if you use a custom build directory, replace all instances of `.next` in this file with your build directory
# ex: if your app builds to `dist`, replace `.next` with `dist`
path: packages/frontend/.next/cache
# change this if you prefer a more strict cache
key: ${{ runner.os }}-build-${{ env.cache-name }}

- name: Build Next.js App
# change this if your site requires a custom build command
run: pnpm run build:frontend

# Here's the first place where next-bundle-analysis' own script is used
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,27 @@ name: Test Suite

on:
push:
branches: ["v3","v3-dev"]
branches: [
"v3",
"v3-dev"
]
pull_request:
types: [opened, synchronize]
types: [
opened,
synchronize
]

jobs:
test:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: actions/checkout@v4

- name: Cache turbo build setup
uses: actions/cache@v3
Expand All @@ -30,12 +32,10 @@ jobs:
restore-keys: |
${{ runner.os }}-turbo-
- uses: pnpm/[email protected]
with:
version: 6.32.2
- uses: pnpm/[email protected]

- name: Setup Node.js environment
uses: actions/setup-node@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"remark-math": "^5.1.1",
"sass": "^1.59.2",
"shared": "workspace:*",
"swr": "^2.1.3",
"swr": "^2.2.4",
"zustand": "^4.3.6"
},
"devDependencies": {
Expand All @@ -50,4 +50,4 @@
"typescript": "*"
},
"packageManager": "[email protected]"
}
}
19 changes: 10 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4a8012b

Please sign in to comment.