Skip to content

Commit

Permalink
chore: bump pnpm to version 8.10.5 (#9823)
Browse files Browse the repository at this point in the history
* chore: bump pnpm to version 8.10.5

* ci: install package manager defined package.json

* fixup! ci: install package manager defined package.json

* fixup! fixup! ci: install package manager defined package.json

* fixup! fixup! fixup! ci: install package manager defined package.json

---------

Co-authored-by: Dominik Schmidt <[email protected]>
  • Loading branch information
JammingBen and dschmidt authored Nov 15, 2023
1 parent b9bb8fc commit 7c248a7
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 132 deletions.
34 changes: 19 additions & 15 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ def pnpmCache(ctx):
},
"steps": skipIfUnchanged(ctx, "cache") +
installPnpm() +
installPlaywright() +
rebuildBuildArtifactCache(ctx, "pnpm", ".pnpm-store") +
rebuildBuildArtifactCache(ctx, "playwright", ".playwright"),
"trigger": {
Expand Down Expand Up @@ -579,11 +580,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 @@ -740,6 +744,7 @@ def e2eTests(ctx):
restoreBuildArtifactCache(ctx, "pnpm", ".pnpm-store") + \
restoreBuildArtifactCache(ctx, "playwright", ".playwright") + \
installPnpm() + \
installPlaywright() + \
restoreBuildArtifactCache(ctx, "web-dist", "dist") + \
setupServerConfigureWeb(params["logLevel"]) + \
restoreOcisCache()
Expand Down Expand Up @@ -1009,12 +1014,21 @@ 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 @@ -1384,13 +1398,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 @@ -1650,15 +1662,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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"vue": "3.3.4"
},
"peerDependencies": {
"@uppy/core": "*",
"caf": "*",
"portal-vue": "3.0.0",
"uuid": "*",
Expand Down Expand Up @@ -121,7 +122,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 7c248a7

Please sign in to comment.