ci: use pnpm v8 (#6116)

This commit is contained in:
Zoltan Kochan
2023-02-22 17:50:20 +02:00
committed by GitHub
parent 9741115406
commit 91b8027441
4 changed files with 5 additions and 5 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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',
},

View File

@@ -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 () => {