mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-06-07 08:30:21 +08:00
move step Patch pnpm upper than Install dependencies
This commit is contained in:
10
.github/workflows/release-ui.yml
vendored
10
.github/workflows/release-ui.yml
vendored
@@ -19,16 +19,13 @@ jobs:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
- name: Install pnpm
|
||||
run: |
|
||||
npm i pnpm@^8.6.9 -g
|
||||
cd packages/ui
|
||||
pnpm i --force
|
||||
|
||||
- name: Patch pnpm
|
||||
uses: actions/github-script@v3
|
||||
with:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
// https://github.com/pnpm/pnpm/issues/5638
|
||||
const path = require('path')
|
||||
@@ -38,6 +35,11 @@ jobs:
|
||||
pnpmCjsFileContent = pnpmCjsFileContent.replace(/^(#!\/usr\/bin\/env node)/, '#!node')
|
||||
fs.writeFileSync(pnpmCjsFilePath, pnpmCjsFileContent)
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd packages/ui
|
||||
pnpm i --force
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cd packages/ui
|
||||
|
||||
Reference in New Issue
Block a user