Skip to content

Commit

Permalink
[Chown] Use pnpm to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CornWorld committed Dec 27, 2024
1 parent 1dc2afa commit fcc3529
Show file tree
Hide file tree
Showing 4 changed files with 2,327 additions and 1,746 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/updateWebsite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '22.x'
- name: Setup Yarn
run: |
corepack enable
corepack prepare yarn@stable --activate
yarn --version
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: get commit info
id: commit
uses: pr-mpt/actions-commit-hash@v3
with:
prefix: 'commit_'
- name: Install dependencies
run: |
yarn install --immutable
pnpm install --frozen-lockfile
cd ./src/data
yarn install --immutable
pnpm install --frozen-lockfile
node processData.js
env:
COMMITID: ${{ steps.commit.outputs.short }}
Expand All @@ -49,15 +48,15 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '22.x'
- name: Setup Yarn
run: |
corepack enable
corepack prepare yarn@stable --activate
yarn --version
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install dependencies & build
run: |
yarn install --immutable
yarn build
pnpm install --frozen-lockfile
env
pnpm build
env:
CI: true
NODE_ENV: production
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.16",
"globals": "^15.14.0",
"typescript": "~5.6.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.2",
"vite": "^6.0.5"
}
Expand Down
Loading

0 comments on commit fcc3529

Please sign in to comment.