Skip to content

Commit

Permalink
chore: bump pnpm to version 8.10.5 (#10051)
Browse files Browse the repository at this point in the history
Signed-off-by: Swikriti Tripathi <[email protected]>
  • Loading branch information
SwikritiT authored Nov 23, 2023
1 parent 822cdf0 commit 67d59ce
Show file tree
Hide file tree
Showing 51 changed files with 115 additions and 159 deletions.
35 changes: 20 additions & 15 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ def pnpmCache(ctx):
},
"steps": skipIfUnchanged(ctx, "cache") +
installPnpm() +
installPlaywright() +
rebuildBuildArtifactCache(ctx, "pnpm", ".pnpm-store") +
rebuildBuildArtifactCache(ctx, "playwright", ".playwright"),
"trigger": {
Expand Down Expand Up @@ -581,11 +582,14 @@ def buildCacheWeb(ctx):
},
"steps": skipIfUnchanged(ctx, "cache") +
restoreBuildArtifactCache(ctx, "pnpm", ".pnpm-store") +
installPnpm() +
[{
"name": "build-web",
"image": OC_CI_NODEJS,
"environment": {
"NO_INSTALL": "true",
},
"commands": [
"pnpm config set store-dir ./.pnpm-store",
"make dist",
],
}] +
Expand Down Expand Up @@ -741,6 +745,7 @@ def e2eTests(ctx):
restoreBuildArtifactCache(ctx, "pnpm", ".pnpm-store") + \
restoreBuildArtifactCache(ctx, "playwright", ".playwright") + \
installPnpm() + \
installPlaywright() + \
restoreBuildArtifactCache(ctx, "web-dist", "dist") + \
copyFilesForUpload()

Expand Down Expand Up @@ -1013,12 +1018,22 @@ def installPnpm():
return [{
"name": "pnpm-install",
"image": OC_CI_NODEJS,
"commands": [
'npm install --silent --global --force "$(jq -r ".packageManager" < package.json)"',
"pnpm config set store-dir ./.pnpm-store",
"pnpm install",
],
}]

def installPlaywright():
return [{
"name": "playwright-install",
"image": OC_CI_NODEJS,
"environment": {
"PLAYWRIGHT_BROWSERS_PATH": ".playwright",
},
"commands": [
"pnpm config set store-dir ./.pnpm-store",
"pnpm install",
"pnpm playwright install chromium",
],
}]

Expand Down Expand Up @@ -1389,13 +1404,11 @@ def runWebuiAcceptanceTests(ctx, suite, alternateSuiteName, filterTags, extraEnv
for env in extraEnvironment:
environment[env] = extraEnvironment[env]

return restoreBuildArtifactCache(ctx, "pnpm", ".pnpm-store") + [{
return restoreBuildArtifactCache(ctx, "pnpm", ".pnpm-store") + installPnpm() + [{
"name": "webui-acceptance-tests",
"image": OC_CI_NODEJS,
"environment": environment,
"commands": [
"pnpm config set store-dir ./.pnpm-store",
"pnpm install", # FIXME: use --filter ./tests/acceptance (currently @babel/register is not found)
"cd %s/tests/acceptance && ./run.sh" % dir["web"],
],
"volumes": [{
Expand Down Expand Up @@ -1655,15 +1668,7 @@ def licenseCheck(ctx):
"os": "linux",
"arch": "amd64",
},
"steps": [
{
"name": "pnpm-install",
"image": OC_CI_NODEJS,
"commands": [
"pnpm config set store-dir ./.pnpm-store",
"pnpm install",
],
},
"steps": installPnpm() + [
{
"name": "node-check-licenses",
"image": OC_CI_NODEJS,
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ RELEASE := ${CURDIR}/release
NODE_MODULES := ${CURDIR}/node_modules

node_modules: package.json pnpm-lock.yaml
pnpm install && touch ${NODE_MODULES}
[ -n "${NO_INSTALL}" ] || pnpm install
touch ${NODE_MODULES}

.PHONY: clean
clean:
Expand Down
2 changes: 1 addition & 1 deletion Makefile.release
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ build: build-web copy-config

.PHONY: build-web
build-web:
$(PNPM) install
[ -n "${NO_INSTALL}" ] || $(PNPM) install
$(PNPM) check:types
$(PNPM) build

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"vue": "3.3.4"
},
"peerDependencies": {
"@uppy/core": "3.3.0",
"caf": "*",
"portal-vue": "*",
"uuid": "*",
Expand All @@ -61,7 +62,7 @@
"@ownclouders/eslint-config": "workspace:*",
"@ownclouders/prettier-config": "workspace:*",
"@ownclouders/tsconfig": "workspace:*",
"@playwright/test": "1.33.0",
"@playwright/test": "1.39.0",
"@rollup/plugin-inject": "5.0.3",
"@types/jest": "29.5.1",
"@types/jest-axe": "3.5.5",
Expand Down Expand Up @@ -98,7 +99,6 @@
"node-fetch": "2.6.11",
"pino": "7.11.0",
"pino-pretty": "7.6.1",
"playwright": "1.33.0",
"postcss": "8.4.20",
"qs": "6.11.1",
"react": "17.0.2",
Expand All @@ -120,7 +120,7 @@
"engines": {
"node": ">=16"
},
"packageManager": "pnpm@8.6.2",
"packageManager": "pnpm@8.10.5",
"volta": {
"node": "16.20.0"
},
Expand Down
Loading

0 comments on commit 67d59ce

Please sign in to comment.