ci: add package manager and version
This commit is contained in:
parent
1f220b9feb
commit
48cf9aaf1c
|
@ -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 }}'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -53,5 +53,6 @@
|
|||
"main"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@6.32.2"
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue