mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-18 13:51:38 -04:00
ci: use pnpm v8 (#6116)
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v2.2.4
|
||||
with:
|
||||
version: next-7
|
||||
version: next-8
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
||||
sudo mv ldid /usr/local/bin
|
||||
- name: install pnpm and npm
|
||||
run: |
|
||||
curl -L https://get.pnpm.io/v6.16.js | node - add --global pnpm@next-7 npm@7
|
||||
curl -L https://get.pnpm.io/v6.16.js | node - add --global pnpm@next-8 npm@7
|
||||
- name: pnpm install
|
||||
run: pnpm install
|
||||
- name: Publish Packages
|
||||
|
||||
@@ -58,7 +58,7 @@ test('fetch a package from Git that has a prepare script', async () => {
|
||||
const { filesIndex } = await fetch(
|
||||
createCafsStore(cafsDir),
|
||||
{
|
||||
commit: 'd2916cab494f6cddc85c921ffa3befb600e00e0e',
|
||||
commit: 'd222f6bfbdea55c032fdb5f0538d52b2a484bbbf',
|
||||
repo: 'https://github.com/pnpm/test-git-fetch.git',
|
||||
type: 'git',
|
||||
},
|
||||
|
||||
@@ -270,7 +270,7 @@ test('run lifecycle scripts of dependent packages after running scripts of their
|
||||
test('run prepare script for git-hosted dependencies', async () => {
|
||||
const project = prepareEmpty()
|
||||
|
||||
await addDependenciesToPackage({}, ['pnpm/test-git-fetch#299c6d89507571462b992b92407a8a07663e32ee'], await testDefaults({ fastUnpack: false }))
|
||||
await addDependenciesToPackage({}, ['pnpm/test-git-fetch#d222f6bfbdea55c032fdb5f0538d52b2a484bbbf'], await testDefaults({ fastUnpack: false }))
|
||||
|
||||
const scripts = project.requireModule('test-git-fetch/output.json')
|
||||
expect(scripts).toStrictEqual([
|
||||
@@ -285,7 +285,7 @@ test('run prepare script for git-hosted dependencies', async () => {
|
||||
])
|
||||
|
||||
const lockfile = await project.readLockfile()
|
||||
expect(lockfile.packages['github.com/pnpm/test-git-fetch/299c6d89507571462b992b92407a8a07663e32ee'].prepare === true).toBeTruthy()
|
||||
expect(lockfile.packages['github.com/pnpm/test-git-fetch/d222f6bfbdea55c032fdb5f0538d52b2a484bbbf'].prepare === true).toBeTruthy()
|
||||
})
|
||||
|
||||
test('lifecycle scripts run before linking bins', async () => {
|
||||
|
||||
Reference in New Issue
Block a user