Skip to content

Commit

Permalink
ci: fix cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
FliPPeDround committed Jun 24, 2024
1 parent c4f0bf9 commit c86e8e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:

- name: dev小程序项目
working-directory: ../sample-project
run: node scripts/dev.cjs
run: node ../scripts/dev.cjs

- name: 打包小程序项目
working-directory: ../sample-project
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:

- name: dev小程序项目
working-directory: ../sample-project
run: node scripts/dev.cjs
run: node ../scripts/dev.cjs

- name: 打包小程序项目
working-directory: ../sample-project
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ on:
push:
tags:
- 'v*'
workflow_run:
workflows: [CI]
types:
- completed

jobs:

Expand Down
1 change: 1 addition & 0 deletions scripts/dev.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const process = require('node:process')
const devProcess = spawn('pnpm', ['dev:mp-weixin'], {
stdio: 'inherit',
shell: true,
cwd: path.join(__dirname, '../sample-project'),
})

// 检查文件是否存在
Expand Down

0 comments on commit c86e8e6

Please sign in to comment.