Skip to content

Commit

Permalink
Update ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Feb 28, 2024
1 parent c8f9c21 commit b554df1
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 16 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/api-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: '18.17.0'
cache: 'pnpm'

- run: npm ci
- run: pnpm install

- name: Copy old public.d.ts
run: mv ./.api/public.d.ts ./.api/public_old.d.ts
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: '18.17.0'
cache: 'pnpm'

- name: Build all modules
run: npm ci
run: pnpm install

- name: Get changed files
id: changed-files
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: '18.17.0'
cache: 'pnpm'

- run: npm ci
- run: pnpm install

- run: npm test

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: '18.17.0'
cache: 'pnpm'

- run: node --version
- run: npm --version

- run: npm ci
- run: pnpm install

- run: npm test

Expand Down
6 changes: 3 additions & 3 deletions modules/build-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"author": "",
"license": "ISC",
"dependencies": {
"@types/babel__core": "7.1.20",
"@types/babel__generator": "7.6.4",
"@types/babel__traverse": "7.18.2",
"@babel/core": "^7.20.12",
"@babel/parser": "^7.20.13",
"@babel/traverse": "^7.20.13",
Expand All @@ -37,9 +40,6 @@
"@ccbuild/modularize": "workspace:*"
},
"devDependencies": {
"@types/babel__core": "7.1.20",
"@types/babel__generator": "7.6.4",
"@types/babel__traverse": "7.18.2",
"@types/dedent": "^0.7.0",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^29.2.3",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "The next generation of build tool for Cocos engine.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"packageManager": "[email protected]",
"scripts": {
"build": "tsc && turbo build",
"change": "node ./scripts/remove-workspaces.js && changeset add && node ./scripts/restore-workspaces.js",
Expand Down
18 changes: 9 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 b554df1

Please sign in to comment.