ci: add package manager and version

This commit is contained in:
Rongjian Zhang 2022-03-01 15:33:17 +08:00
parent 1f220b9feb
commit 48cf9aaf1c
5 changed files with 11 additions and 15 deletions

View File

@ -9,11 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.9.1
- uses: pnpm/action-setup@v2.2.1
- run: pnpm install
- run: npm run build
- run: pnpm build
- run: npx bundlewatch
env:
BUNDLEWATCH_GITHUB_TOKEN: '${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}'

View File

@ -9,8 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.9.1
- uses: pnpm/action-setup@v2.2.1
- run: pnpm install
- run: npm run lint
- run: pnpm lint

View File

@ -9,9 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.9.1
- uses: pnpm/action-setup@v2.2.1
- run: pnpm install
- run: npm run build
- run: npm test
- run: pnpm test

View File

@ -53,5 +53,6 @@
"main"
]
}
}
},
"packageManager": "pnpm@6.32.2"
}

View File

@ -121,4 +121,6 @@ fs.writeFileSync(path.join(rootDir, 'README.md'), readme)
// format
execSync('npm run lint:fix', { stdio: 'inherit' })
execSync('npx sort-package-json packages/*/package.json', { stdio: 'inherit' })
execSync('npx sort-package-json package.json packages/*/package.json', {
stdio: 'inherit',
})