ci: add package manager and version
This commit is contained in:
parent
1f220b9feb
commit
48cf9aaf1c
|
@ -9,11 +9,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: pnpm/action-setup@v2.0.1
|
- uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.9.1
|
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: npm run build
|
- run: pnpm build
|
||||||
- run: npx bundlewatch
|
- run: npx bundlewatch
|
||||||
env:
|
env:
|
||||||
BUNDLEWATCH_GITHUB_TOKEN: '${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}'
|
BUNDLEWATCH_GITHUB_TOKEN: '${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}'
|
||||||
|
|
|
@ -9,8 +9,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: pnpm/action-setup@v2.0.1
|
- uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.9.1
|
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: npm run lint
|
- run: pnpm lint
|
||||||
|
|
|
@ -9,9 +9,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: pnpm/action-setup@v2.0.1
|
- uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.9.1
|
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: npm run build
|
- run: pnpm test
|
||||||
- run: npm test
|
|
||||||
|
|
|
@ -53,5 +53,6 @@
|
||||||
"main"
|
"main"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"packageManager": "pnpm@6.32.2"
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,4 +121,6 @@ fs.writeFileSync(path.join(rootDir, 'README.md'), readme)
|
||||||
|
|
||||||
// format
|
// format
|
||||||
execSync('npm run lint:fix', { stdio: 'inherit' })
|
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