From 7431f9c25aa67e72bc330ced40e118ebd682b19d Mon Sep 17 00:00:00 2001 From: Matteo Bruni <176620+matteobruni@users.noreply.github.com> Date: Sat, 9 May 2026 03:48:12 +0200 Subject: [PATCH 1/7] Update pnpm action setup in deploy-confetti.yml Removed version specification for pnpm action. --- .github/workflows/deploy-confetti.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy-confetti.yml b/.github/workflows/deploy-confetti.yml index 79b298b17d3..b75f79d9f37 100644 --- a/.github/workflows/deploy-confetti.yml +++ b/.github/workflows/deploy-confetti.yml @@ -26,8 +26,6 @@ jobs: fetch-depth: 0 - uses: pnpm/action-setup@v5 - with: - version: 10 - uses: actions/setup-node@v4 with: From e3558efbcff1629a2699156bbb7063204fb9a152 Mon Sep 17 00:00:00 2001 From: Matteo Bruni <176620+matteobruni@users.noreply.github.com> Date: Sat, 9 May 2026 03:48:42 +0200 Subject: [PATCH 2/7] Update deploy-website.yml --- .github/workflows/deploy-website.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 198435d9984..fa17651f438 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -26,8 +26,6 @@ jobs: fetch-depth: 0 - uses: pnpm/action-setup@v5 - with: - version: 10 - uses: actions/setup-node@v4 with: From 294aa0cd64b6fcd3dae642bc71ecb5573a1af59d Mon Sep 17 00:00:00 2001 From: Matteo Bruni <176620+matteobruni@users.noreply.github.com> Date: Sat, 9 May 2026 03:49:13 +0200 Subject: [PATCH 3/7] Simplify pnpm installation step in workflow Removed version and run_install parameters from pnpm setup. --- .github/workflows/docs.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9793b663358..5097ef2227f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -25,9 +25,6 @@ jobs: - uses: pnpm/action-setup@v6.0.0 name: Install pnpm id: pnpm-install - with: - version: 10 - run_install: false - name: Get pnpm version id: pnpm-version run: | From 10f0da8e61d26f951b943d42b084097d89c7193a Mon Sep 17 00:00:00 2001 From: Matteo Bruni <176620+matteobruni@users.noreply.github.com> Date: Sat, 9 May 2026 10:31:09 +0200 Subject: [PATCH 4/7] build: added missing after build file --- wrappers/svelte/CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wrappers/svelte/CHANGELOG.md b/wrappers/svelte/CHANGELOG.md index 044e74bdfe0..4db19927845 100644 --- a/wrappers/svelte/CHANGELOG.md +++ b/wrappers/svelte/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @tsparticles/svelte - - - - # [4.0.0-beta.12](https://github.com/tsparticles/tsparticles/compare/v4.0.0-beta.11...v4.0.0-beta.12) (2026-04-15) ### Features From 5c9047e252e72bd9fe29f177263e03f6a7f63cfb Mon Sep 17 00:00:00 2001 From: Matteo Bruni <176620+matteobruni@users.noreply.github.com> Date: Sat, 9 May 2026 10:44:35 +0200 Subject: [PATCH 5/7] build: disabled typedoc generation for now, issues on CI --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 076251045e4..3089d1ad9b1 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,11 @@ "slimbuild:ci": "pnpm run prettify:ci:readme && nx run-many -t build --c=ci", "slimbuild:affected": "pnpm run prettify:readme && nx affected -t build --parallel=50%", "slimbuild:affected:ci": "pnpm run prettify:ci:readme && nx affected -t build --c=ci", - "build": "pnpm run slimbuild && pnpm run build:docs", - "build:ci": "pnpm run slimbuild:ci && pnpm run build:docs", - "build:affected": "pnpm run slimbuild:affected && pnpm run build:docs", - "build:affected:ci": "pnpm run slimbuild:affected:ci && pnpm run build:docs", - "build:ci:json": "pnpm run slimbuild:ci && pnpm run build:docs:json", + "build": "pnpm run slimbuild && echo pnpm run build:docs", + "build:ci": "pnpm run slimbuild:ci && echo pnpm run build:docs", + "build:affected": "pnpm run slimbuild:affected && echo pnpm run build:docs", + "build:affected:ci": "pnpm run slimbuild:affected:ci && echo pnpm run build:docs", + "build:ci:json": "pnpm run slimbuild:ci && echo pnpm run build:docs:json", "build:docs": "rimraf docs && typedoc", "build:docs:json": "rimraf docs.json && typedoc --json docs.json", "prettify:ci:readme": "prettier --config ./prettier.readme.config.json --check ./README.md ./markdown/*", From 3e3fc087fdbdfc517f883145c4bc91766f7611cb Mon Sep 17 00:00:00 2001 From: Matteo Bruni <176620+matteobruni@users.noreply.github.com> Date: Sat, 9 May 2026 14:02:00 +0200 Subject: [PATCH 6/7] build: updated repository in some package.json --- demo/angular/package.json | 5 +++++ demo/astro/package.json | 5 +++++ demo/electron/package.json | 5 +++++ demo/ember/package.json | 5 +++++ demo/inferno/package.json | 5 +++++ demo/ionic/package.json | 5 +++++ demo/jquery/package.json | 3 ++- demo/lit/package.json | 5 +++++ demo/nextjs-legacy/package.json | 5 +++++ demo/nextjs/package.json | 5 +++++ demo/nuxt2/package.json | 5 +++++ demo/nuxt3/package.json | 5 +++++ demo/nuxt4/package.json | 5 +++++ demo/preact/package.json | 3 ++- demo/qwik/package.json | 5 +++++ demo/react/package.json | 5 +++++ demo/riot/package.json | 5 +++++ demo/solid/package.json | 5 +++++ demo/svelte-kit/package.json | 5 +++++ demo/svelte/package.json | 5 +++++ demo/vanilla/package.json | 3 ++- demo/vanilla_new/package.json | 3 ++- demo/vite/package.json | 5 +++++ demo/vue2/package.json | 3 ++- demo/vue3/package.json | 5 +++++ demo/webcomponents/package.json | 3 ++- plugins/colors/hex/package.dist.json | 2 +- plugins/colors/hsl/package.dist.json | 2 +- plugins/colors/hsv/package.dist.json | 2 +- plugins/colors/hwb/package.dist.json | 2 +- plugins/colors/lab/package.dist.json | 2 +- plugins/colors/lch/package.dist.json | 2 +- plugins/colors/named/package.dist.json | 2 +- plugins/colors/oklab/package.dist.json | 2 +- plugins/colors/oklch/package.dist.json | 2 +- plugins/colors/rgb/package.dist.json | 2 +- plugins/emittersShapes/canvas/package.dist.json | 2 +- plugins/emittersShapes/circle/package.dist.json | 2 +- plugins/emittersShapes/path/package.dist.json | 2 +- plugins/emittersShapes/polygon/package.dist.json | 2 +- plugins/emittersShapes/square/package.dist.json | 2 +- utils/canvasUtils/package.json | 2 +- utils/fractalNoise/package.json | 2 +- utils/noiseField/package.json | 2 +- utils/pathUtils/package.json | 2 +- utils/perlinNoise/package.json | 2 +- utils/smoothValueNoise/package.json | 2 +- utils/tests/package.json | 5 +++++ wrappers/angular-confetti/package.json | 5 +++++ wrappers/angular-confetti/projects/ng-confetti/package.json | 2 +- wrappers/angular-fireworks/package.json | 5 +++++ .../angular-fireworks/projects/ng-fireworks/package.json | 2 +- wrappers/angular/package.json | 5 +++++ wrappers/angular/projects/ng-particles/package.json | 2 +- wrappers/astro/package.json | 2 +- wrappers/ember/package.json | 2 +- wrappers/inferno/package.json | 2 +- wrappers/lit/package.json | 5 +++++ wrappers/nextjs/package.json | 5 +++++ wrappers/nuxt2/package.json | 5 +++++ wrappers/nuxt3/package.json | 5 +++++ wrappers/nuxt4/package.json | 5 +++++ wrappers/preact/package.json | 2 +- wrappers/qwik/package.json | 5 +++++ wrappers/react/package.json | 5 +++++ wrappers/solid/package.json | 2 +- wrappers/vue2/package.json | 2 +- wrappers/vue3/package.json | 2 +- wrappers/webcomponents/package.json | 2 +- wrappers/wordpress/package.json | 5 +++++ 70 files changed, 204 insertions(+), 38 deletions(-) diff --git a/demo/angular/package.json b/demo/angular/package.json index 1119243c4d1..f128d040906 100644 --- a/demo/angular/package.json +++ b/demo/angular/package.json @@ -1,6 +1,11 @@ { "name": "@tsparticles/angular-demo", "version": "4.0.0-beta.15", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/angular" + }, "scripts": { "ng": "ng", "start": "ng serve -o", diff --git a/demo/astro/package.json b/demo/astro/package.json index dafa4c2b9c5..a017619c13a 100644 --- a/demo/astro/package.json +++ b/demo/astro/package.json @@ -3,6 +3,11 @@ "type": "module", "version": "4.0.0-beta.15", "private": true, + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/astro" + }, "scripts": { "dev": "astro dev", "start": "astro dev", diff --git a/demo/electron/package.json b/demo/electron/package.json index d1ffd840621..1d703834471 100644 --- a/demo/electron/package.json +++ b/demo/electron/package.json @@ -4,6 +4,11 @@ "description": "", "main": "app/index.cjs", "private": true, + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/electron" + }, "scripts": { "start": "pnpm run build:client && electron .", "build": "pnpm run build:client && pnpx @electron/packager . electron-demo", diff --git a/demo/ember/package.json b/demo/ember/package.json index d529dcce986..e376acb0217 100644 --- a/demo/ember/package.json +++ b/demo/ember/package.json @@ -3,6 +3,11 @@ "version": "4.0.0-beta.15", "private": true, "description": "Ember demo for @tsparticles/ember", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/ember" + }, "engines": { "node": "14.* || 16.* || >= 18" }, diff --git a/demo/inferno/package.json b/demo/inferno/package.json index 7dbf8d45a12..d9715bb9120 100644 --- a/demo/inferno/package.json +++ b/demo/inferno/package.json @@ -4,6 +4,11 @@ "private": true, "description": "> TODO: description", "main": "index.js", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/inferno" + }, "scripts": { "build": "webpack --mode production", "build:ci": "webpack --mode production", diff --git a/demo/ionic/package.json b/demo/ionic/package.json index 502ae0ac9f0..c502af020a9 100644 --- a/demo/ionic/package.json +++ b/demo/ionic/package.json @@ -3,6 +3,11 @@ "version": "4.0.0-beta.15", "author": "Matteo Bruni ", "homepage": "https://particles.js.org", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/ionic" + }, "scripts": { "ng": "ng", "start": "ng serve", diff --git a/demo/jquery/package.json b/demo/jquery/package.json index aaadf029fe6..b2142121871 100644 --- a/demo/jquery/package.json +++ b/demo/jquery/package.json @@ -8,7 +8,8 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/tsparticles/tsparticles.git" + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/jquery" }, "scripts": { "build": "pnpm run build:style && pnpm run build:index", diff --git a/demo/lit/package.json b/demo/lit/package.json index a450f992ac8..cc6b07f085f 100644 --- a/demo/lit/package.json +++ b/demo/lit/package.json @@ -4,6 +4,11 @@ "private": true, "description": "A simple web component", "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/lit" + }, "scripts": { "build": "tsc", "build:watch": "tsc --watch", diff --git a/demo/nextjs-legacy/package.json b/demo/nextjs-legacy/package.json index df003bdfd86..b3211850953 100644 --- a/demo/nextjs-legacy/package.json +++ b/demo/nextjs-legacy/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/nextjs-legacy-demo", "version": "4.0.0-beta.15", "private": true, + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/nextjs-legacy" + }, "scripts": { "dev": "next dev", "build": "next build", diff --git a/demo/nextjs/package.json b/demo/nextjs/package.json index ec2959e1db7..91afb49de20 100644 --- a/demo/nextjs/package.json +++ b/demo/nextjs/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/nextjs-demo", "version": "4.0.0-beta.15", "private": true, + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/nextjs" + }, "scripts": { "dev": "next dev", "build": "next build", diff --git a/demo/nuxt2/package.json b/demo/nuxt2/package.json index 21dea170718..ead48c765ed 100644 --- a/demo/nuxt2/package.json +++ b/demo/nuxt2/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/nuxt2-demo", "version": "4.0.0-beta.15", "private": true, + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/nuxt2" + }, "scripts": { "dev": "nuxt", "build": "nuxt build", diff --git a/demo/nuxt3/package.json b/demo/nuxt3/package.json index 4bd1036eb34..638b5ba9f4a 100644 --- a/demo/nuxt3/package.json +++ b/demo/nuxt3/package.json @@ -3,6 +3,11 @@ "version": "4.0.0-beta.15", "private": true, "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/nuxt3" + }, "scripts": { "build": "nuxt build", "dev": "nuxt dev", diff --git a/demo/nuxt4/package.json b/demo/nuxt4/package.json index a94b5696145..a4459cff9c7 100644 --- a/demo/nuxt4/package.json +++ b/demo/nuxt4/package.json @@ -3,6 +3,11 @@ "version": "4.0.0-beta.15", "private": true, "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/nuxt4" + }, "scripts": { "build": "nuxt build", "dev": "nuxt dev", diff --git a/demo/preact/package.json b/demo/preact/package.json index ab34f07a592..b7a2bcf8b42 100644 --- a/demo/preact/package.json +++ b/demo/preact/package.json @@ -9,7 +9,8 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/tsparticles/tsparticles.git" + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/preact" }, "eslintConfig": { "extends": "preact", diff --git a/demo/qwik/package.json b/demo/qwik/package.json index 354acd46870..b00782160d9 100644 --- a/demo/qwik/package.json +++ b/demo/qwik/package.json @@ -3,6 +3,11 @@ "version": "4.0.0-beta.15", "private": true, "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/qwik" + }, "scripts": { "dev": "vite --mode ssr", "start": "vite --open --mode ssr", diff --git a/demo/react/package.json b/demo/react/package.json index 9aaae205490..4152f10ddb0 100644 --- a/demo/react/package.json +++ b/demo/react/package.json @@ -3,6 +3,11 @@ "version": "4.0.0-beta.15", "private": true, "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/react" + }, "dependencies": { "@tsparticles/engine": "workspace:*", "@tsparticles/plugin-themes": "workspace:*", diff --git a/demo/riot/package.json b/demo/riot/package.json index 5b04aa6a697..8590e5fe72a 100644 --- a/demo/riot/package.json +++ b/demo/riot/package.json @@ -4,6 +4,11 @@ "version": "4.0.0-beta.15", "description": "", "main": "index.js", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/riot" + }, "scripts": { "test": "nyc --require esm --require jsdom-global/register --require @riotjs/register mocha src/**/*.spec.js", "cov": "nyc report --reporter=text-lcov", diff --git a/demo/solid/package.json b/demo/solid/package.json index 5706c4b2e3d..c30761cfc8a 100644 --- a/demo/solid/package.json +++ b/demo/solid/package.json @@ -3,6 +3,11 @@ "version": "4.0.0-beta.15", "private": true, "description": "", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/solid" + }, "scripts": { "start": "vite", "dev": "vite", diff --git a/demo/svelte-kit/package.json b/demo/svelte-kit/package.json index 2f89992174c..04ae41b6f7e 100644 --- a/demo/svelte-kit/package.json +++ b/demo/svelte-kit/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/svelte-kit-demo", "version": "4.0.0-beta.15", "private": true, + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/svelte-kit" + }, "scripts": { "dev": "vite dev", "build": "vite build", diff --git a/demo/svelte/package.json b/demo/svelte/package.json index 515ce30cfd8..a92bcc968ed 100644 --- a/demo/svelte/package.json +++ b/demo/svelte/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/svelte-demo", "version": "4.0.0-beta.15", "private": true, + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/svelte" + }, "scripts": { "build": "rollup -c", "build:ci": "rollup -c", diff --git a/demo/vanilla/package.json b/demo/vanilla/package.json index 763fd392f32..d8708930378 100644 --- a/demo/vanilla/package.json +++ b/demo/vanilla/package.json @@ -12,7 +12,8 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/tsparticles/tsparticles.git" + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/vanilla" }, "bugs": { "url": "https://github.com/tsparticles/tsparticles/issues" diff --git a/demo/vanilla_new/package.json b/demo/vanilla_new/package.json index d919809559f..bc66dbb4188 100644 --- a/demo/vanilla_new/package.json +++ b/demo/vanilla_new/package.json @@ -15,7 +15,8 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/tsparticles/tsparticles.git" + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/vanilla_new" }, "author": "Matteo Bruni ", "license": "MIT", diff --git a/demo/vite/package.json b/demo/vite/package.json index a683a267b1a..ed7a536aedf 100644 --- a/demo/vite/package.json +++ b/demo/vite/package.json @@ -3,6 +3,11 @@ "private": true, "version": "4.0.0-beta.15", "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/vite" + }, "scripts": { "dev": "vite", "build": "tsc && vite build", diff --git a/demo/vue2/package.json b/demo/vue2/package.json index 1bb0950ec9e..79c98fae352 100644 --- a/demo/vue2/package.json +++ b/demo/vue2/package.json @@ -9,7 +9,8 @@ "main": "lib/vue.js", "repository": { "type": "git", - "url": "git+https://github.com/tsparticles/tsparticles.git" + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/vue2" }, "scripts": { "dev": "vue-cli-service serve", diff --git a/demo/vue3/package.json b/demo/vue3/package.json index 9a770fcff98..e77c4e62b0c 100644 --- a/demo/vue3/package.json +++ b/demo/vue3/package.json @@ -3,6 +3,11 @@ "version": "4.0.0-beta.15", "private": true, "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/vue3" + }, "scripts": { "dev": "vite", "build": "run-p type-check build-only", diff --git a/demo/webcomponents/package.json b/demo/webcomponents/package.json index 5712b870568..72a5b3209ae 100644 --- a/demo/webcomponents/package.json +++ b/demo/webcomponents/package.json @@ -12,7 +12,8 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/tsparticles/tsparticles.git" + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "demo/webcomponents" }, "bugs": { "url": "https://github.com/tsparticles/webcomponents/issues" diff --git a/plugins/colors/hex/package.dist.json b/plugins/colors/hex/package.dist.json index 90ec0d41f06..a80ad1d8f54 100644 --- a/plugins/colors/hex/package.dist.json +++ b/plugins/colors/hex/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/colors/hexColor" + "directory": "plugins/colors/hex" }, "keywords": [ "front-end", diff --git a/plugins/colors/hsl/package.dist.json b/plugins/colors/hsl/package.dist.json index 5631689a236..9250d6125f9 100644 --- a/plugins/colors/hsl/package.dist.json +++ b/plugins/colors/hsl/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/colors/hslColor" + "directory": "plugins/colors/hsl" }, "keywords": [ "front-end", diff --git a/plugins/colors/hsv/package.dist.json b/plugins/colors/hsv/package.dist.json index 7b3fc3784f4..9135037b326 100644 --- a/plugins/colors/hsv/package.dist.json +++ b/plugins/colors/hsv/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/colors/hsvColor" + "directory": "plugins/colors/hsv" }, "keywords": [ "front-end", diff --git a/plugins/colors/hwb/package.dist.json b/plugins/colors/hwb/package.dist.json index 757bf2270b3..1653dd00717 100644 --- a/plugins/colors/hwb/package.dist.json +++ b/plugins/colors/hwb/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/colors/hwbColor" + "directory": "plugins/colors/hwb" }, "keywords": [ "front-end", diff --git a/plugins/colors/lab/package.dist.json b/plugins/colors/lab/package.dist.json index fd84210052f..2e127095aeb 100644 --- a/plugins/colors/lab/package.dist.json +++ b/plugins/colors/lab/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/colors/labColor" + "directory": "plugins/colors/lab" }, "keywords": [ "front-end", diff --git a/plugins/colors/lch/package.dist.json b/plugins/colors/lch/package.dist.json index b5ae000c402..fd90fa13b9e 100644 --- a/plugins/colors/lch/package.dist.json +++ b/plugins/colors/lch/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/colors/lchColor" + "directory": "plugins/colors/lch" }, "keywords": [ "front-end", diff --git a/plugins/colors/named/package.dist.json b/plugins/colors/named/package.dist.json index cb44c6a5d7d..8648c9904a4 100644 --- a/plugins/colors/named/package.dist.json +++ b/plugins/colors/named/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/colors/namedColor" + "directory": "plugins/colors/named" }, "keywords": [ "front-end", diff --git a/plugins/colors/oklab/package.dist.json b/plugins/colors/oklab/package.dist.json index f56c07ab884..1398afefae6 100644 --- a/plugins/colors/oklab/package.dist.json +++ b/plugins/colors/oklab/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/colors/oklabColor" + "directory": "plugins/colors/oklab" }, "keywords": [ "front-end", diff --git a/plugins/colors/oklch/package.dist.json b/plugins/colors/oklch/package.dist.json index decf101aba6..9015323a2ee 100644 --- a/plugins/colors/oklch/package.dist.json +++ b/plugins/colors/oklch/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/colors/oklchColor" + "directory": "plugins/colors/oklch" }, "keywords": [ "front-end", diff --git a/plugins/colors/rgb/package.dist.json b/plugins/colors/rgb/package.dist.json index da89db4639b..12d069d9dc0 100644 --- a/plugins/colors/rgb/package.dist.json +++ b/plugins/colors/rgb/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/colors/rgbColor" + "directory": "plugins/colors/rgb" }, "keywords": [ "front-end", diff --git a/plugins/emittersShapes/canvas/package.dist.json b/plugins/emittersShapes/canvas/package.dist.json index 397c0257c0d..a416c6eafd1 100644 --- a/plugins/emittersShapes/canvas/package.dist.json +++ b/plugins/emittersShapes/canvas/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/emitterShapes/canvas" + "directory": "plugins/emittersShapes/canvas" }, "keywords": [ "front-end", diff --git a/plugins/emittersShapes/circle/package.dist.json b/plugins/emittersShapes/circle/package.dist.json index 1f7fca4bf55..c3ad385ce53 100644 --- a/plugins/emittersShapes/circle/package.dist.json +++ b/plugins/emittersShapes/circle/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/emitterShapes/circle" + "directory": "plugins/emittersShapes/circle" }, "keywords": [ "front-end", diff --git a/plugins/emittersShapes/path/package.dist.json b/plugins/emittersShapes/path/package.dist.json index 10cd615777d..fb94daff0c5 100644 --- a/plugins/emittersShapes/path/package.dist.json +++ b/plugins/emittersShapes/path/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/emitterShapes/path" + "directory": "plugins/emittersShapes/path" }, "keywords": [ "front-end", diff --git a/plugins/emittersShapes/polygon/package.dist.json b/plugins/emittersShapes/polygon/package.dist.json index c3cde3e5ce5..7958238d86f 100644 --- a/plugins/emittersShapes/polygon/package.dist.json +++ b/plugins/emittersShapes/polygon/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/emitterShapes/polygon" + "directory": "plugins/emittersShapes/polygon" }, "keywords": [ "front-end", diff --git a/plugins/emittersShapes/square/package.dist.json b/plugins/emittersShapes/square/package.dist.json index e81402e5786..7c8bc23b386 100644 --- a/plugins/emittersShapes/square/package.dist.json +++ b/plugins/emittersShapes/square/package.dist.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "plugins/emitterShapes/square" + "directory": "plugins/emittersShapes/square" }, "keywords": [ "front-end", diff --git a/utils/canvasUtils/package.json b/utils/canvasUtils/package.json index 5ba8d917c3e..5b22e0ea4cd 100644 --- a/utils/canvasUtils/package.json +++ b/utils/canvasUtils/package.json @@ -11,7 +11,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "paths/canvasUtils" + "directory": "utils/canvasUtils" }, "keywords": [ "front-end", diff --git a/utils/fractalNoise/package.json b/utils/fractalNoise/package.json index 3c5e01e4b64..c3932a48d60 100644 --- a/utils/fractalNoise/package.json +++ b/utils/fractalNoise/package.json @@ -11,7 +11,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "paths/fractalNoise" + "directory": "utils/fractalNoise" }, "keywords": [ "front-end", diff --git a/utils/noiseField/package.json b/utils/noiseField/package.json index f348afb0de2..701f5a238c7 100644 --- a/utils/noiseField/package.json +++ b/utils/noiseField/package.json @@ -11,7 +11,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "paths/noiseField" + "directory": "utils/noiseField" }, "keywords": [ "front-end", diff --git a/utils/pathUtils/package.json b/utils/pathUtils/package.json index 87595ba2930..c0e0e6918a5 100644 --- a/utils/pathUtils/package.json +++ b/utils/pathUtils/package.json @@ -11,7 +11,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "paths/pathUtils" + "directory": "utils/pathUtils" }, "keywords": [ "front-end", diff --git a/utils/perlinNoise/package.json b/utils/perlinNoise/package.json index 14aa391fcae..97d1de0b3e0 100644 --- a/utils/perlinNoise/package.json +++ b/utils/perlinNoise/package.json @@ -11,7 +11,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "paths/perlinNoise" + "directory": "utils/perlinNoise" }, "keywords": [ "front-end", diff --git a/utils/smoothValueNoise/package.json b/utils/smoothValueNoise/package.json index f065af1a98a..14bd4b39af8 100644 --- a/utils/smoothValueNoise/package.json +++ b/utils/smoothValueNoise/package.json @@ -11,7 +11,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "paths/smoothValueNoise" + "directory": "utils/smoothValueNoise" }, "keywords": [ "front-end", diff --git a/utils/tests/package.json b/utils/tests/package.json index 3db59632d10..7500bd67b6c 100644 --- a/utils/tests/package.json +++ b/utils/tests/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/tests", "private": true, "version": "4.0.0-beta.15", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "utils/tests" + }, "scripts": { "prettify:ci": "prettier --check ./src", "prettify": "prettier --write ./src", diff --git a/wrappers/angular-confetti/package.json b/wrappers/angular-confetti/package.json index 70e8314ba3d..055e27bdc51 100644 --- a/wrappers/angular-confetti/package.json +++ b/wrappers/angular-confetti/package.json @@ -2,6 +2,11 @@ "name": "angular-confetti", "version": "4.0.0-beta.15", "description": "Official tsParticles Angular Confetti Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, React, Vue.js (2.x and 3.x), Svelte, jQuery, Preact, Riot.js, Solid.js, Inferno.", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "wrappers/angular-confetti" + }, "keywords": [ "front-end", "frontend", diff --git a/wrappers/angular-confetti/projects/ng-confetti/package.json b/wrappers/angular-confetti/projects/ng-confetti/package.json index 894e16c434f..aac826c9c27 100644 --- a/wrappers/angular-confetti/projects/ng-confetti/package.json +++ b/wrappers/angular-confetti/projects/ng-confetti/package.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "components/confetti" + "directory": "wrappers/angular-confetti/projects/ng-confetti" }, "keywords": [ "front-end", diff --git a/wrappers/angular-fireworks/package.json b/wrappers/angular-fireworks/package.json index 8de08bd253b..4704c0bb26f 100644 --- a/wrappers/angular-fireworks/package.json +++ b/wrappers/angular-fireworks/package.json @@ -2,6 +2,11 @@ "name": "angular-fireworks", "version": "4.0.0-beta.15", "description": "Official tsParticles Angular Confetti Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, React, Vue.js (2.x and 3.x), Svelte, jQuery, Preact, Riot.js, Solid.js, Inferno.", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "wrappers/angular-fireworks" + }, "keywords": [ "front-end", "frontend", diff --git a/wrappers/angular-fireworks/projects/ng-fireworks/package.json b/wrappers/angular-fireworks/projects/ng-fireworks/package.json index 4a18f03e649..9f0ae8c84b0 100644 --- a/wrappers/angular-fireworks/projects/ng-fireworks/package.json +++ b/wrappers/angular-fireworks/projects/ng-fireworks/package.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "components/confetti" + "directory": "wrappers/angular-fireworks/projects/ng-fireworks" }, "keywords": [ "front-end", diff --git a/wrappers/angular/package.json b/wrappers/angular/package.json index 190e0a0c7e4..ac0343732c4 100644 --- a/wrappers/angular/package.json +++ b/wrappers/angular/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/angular", "version": "4.0.0-beta.15", "description": "Official tsParticles Angular Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, React, Vue.js (2.x and 3.x), Svelte, jQuery, Preact, Riot.js, Solid.js, Inferno.", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "wrappers/angular" + }, "keywords": [ "front-end", "frontend", diff --git a/wrappers/angular/projects/ng-particles/package.json b/wrappers/angular/projects/ng-particles/package.json index c8f02b5ea76..b875f730c47 100644 --- a/wrappers/angular/projects/ng-particles/package.json +++ b/wrappers/angular/projects/ng-particles/package.json @@ -6,7 +6,7 @@ "repository": { "type": "git", "url": "git+https://github.com/tsparticles/tsparticles.git", - "directory": "components/particles" + "directory": "wrappers/angular/projects/ng-particles" }, "keywords": [ "front-end", diff --git a/wrappers/astro/package.json b/wrappers/astro/package.json index 16bc76f1783..5d5f97e5f8c 100644 --- a/wrappers/astro/package.json +++ b/wrappers/astro/package.json @@ -13,7 +13,7 @@ "prepack": "pnpm run build" }, "repository": { - "url": "https://github.com/tsparticles/tsparticles.git", + "url": "git+https://github.com/tsparticles/tsparticles.git", "directory": "wrappers/astro", "type": "git" }, diff --git a/wrappers/ember/package.json b/wrappers/ember/package.json index 877bb38489f..2af8b3feb55 100644 --- a/wrappers/ember/package.json +++ b/wrappers/ember/package.json @@ -7,7 +7,7 @@ ], "repository": { "type": "git", - "url": "https://github.com/tsparticles/tsparticles.git", + "url": "git+https://github.com/tsparticles/tsparticles.git", "directory": "wrappers/ember" }, "license": "MIT", diff --git a/wrappers/inferno/package.json b/wrappers/inferno/package.json index 6d3ebc7463f..a099c8e36b8 100644 --- a/wrappers/inferno/package.json +++ b/wrappers/inferno/package.json @@ -21,7 +21,7 @@ "url": "https://github.com/tsparticles/inferno/issues" }, "repository": { - "url": "https://github.com/tsparticles/tsparticles.git", + "url": "git+https://github.com/tsparticles/tsparticles.git", "directory": "wrappers/inferno", "type": "git" }, diff --git a/wrappers/lit/package.json b/wrappers/lit/package.json index aad0a31eb0e..66db40d3f7e 100644 --- a/wrappers/lit/package.json +++ b/wrappers/lit/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/lit", "version": "4.0.0-beta.15", "description": "Official tsParticles Lit Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, Angular, React, Vue.js (2.x and 3.x), Svelte, jQuery, Preact, Riot.js, Solid.js, Inferno.", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "wrappers/lit" + }, "type": "module", "main": "./lib/lit-tsparticles.js", "types": "./lib/lit-tsparticles.d.ts", diff --git a/wrappers/nextjs/package.json b/wrappers/nextjs/package.json index 3b4600c7dbd..3493ab46814 100644 --- a/wrappers/nextjs/package.json +++ b/wrappers/nextjs/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/nextjs", "version": "4.0.0-beta.15", "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "wrappers/nextjs" + }, "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { diff --git a/wrappers/nuxt2/package.json b/wrappers/nuxt2/package.json index f76f08a7ccb..638cdad4f80 100644 --- a/wrappers/nuxt2/package.json +++ b/wrappers/nuxt2/package.json @@ -1,6 +1,11 @@ { "name": "@tsparticles/nuxt2", "version": "4.0.0-beta.15", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "wrappers/nuxt2" + }, "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/wrappers/nuxt3/package.json b/wrappers/nuxt3/package.json index f0d4bd2fbaa..44bac3d6bb8 100644 --- a/wrappers/nuxt3/package.json +++ b/wrappers/nuxt3/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/nuxt3", "version": "4.0.0-beta.15", "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "wrappers/nuxt3" + }, "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { diff --git a/wrappers/nuxt4/package.json b/wrappers/nuxt4/package.json index 3d10c20eaab..b52cdd6864a 100644 --- a/wrappers/nuxt4/package.json +++ b/wrappers/nuxt4/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/nuxt4", "version": "4.0.0-beta.15", "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "wrappers/nuxt4" + }, "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { diff --git a/wrappers/preact/package.json b/wrappers/preact/package.json index 8e4b6e21bed..6c67c0c57a3 100644 --- a/wrappers/preact/package.json +++ b/wrappers/preact/package.json @@ -19,7 +19,7 @@ "prepack": "pnpm run build" }, "repository": { - "url": "https://github.com/tsparticles/tsparticles.git", + "url": "git+https://github.com/tsparticles/tsparticles.git", "directory": "wrappers/preact", "type": "git" }, diff --git a/wrappers/qwik/package.json b/wrappers/qwik/package.json index a859cb78f2b..1684f0143dd 100644 --- a/wrappers/qwik/package.json +++ b/wrappers/qwik/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/qwik", "version": "4.0.0-beta.15", "description": "Official tsParticles Qwik Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, React, Riot.js, Solid.js, Inferno.", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "wrappers/qwik" + }, "main": "./lib/index.qwik.mjs", "qwik": "./lib/index.qwik.mjs", "types": "./lib-types/index.d.ts", diff --git a/wrappers/react/package.json b/wrappers/react/package.json index 80fb2c58a78..b42c606ab29 100644 --- a/wrappers/react/package.json +++ b/wrappers/react/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/react", "version": "4.0.0-beta.15", "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "wrappers/react" + }, "main": "dist/index.js", "types": "dist/lib/index.d.ts", "exports": { diff --git a/wrappers/solid/package.json b/wrappers/solid/package.json index 31bc9100417..e56f8a8dbbe 100644 --- a/wrappers/solid/package.json +++ b/wrappers/solid/package.json @@ -19,7 +19,7 @@ "url": "https://github.com/tsparticles/solid/issues" }, "repository": { - "url": "https://github.com/tsparticles/tsparticles.git", + "url": "git+https://github.com/tsparticles/tsparticles.git", "directory": "wrappers/solid", "type": "git" }, diff --git a/wrappers/vue2/package.json b/wrappers/vue2/package.json index aac175fe765..9116efd5f60 100644 --- a/wrappers/vue2/package.json +++ b/wrappers/vue2/package.json @@ -83,7 +83,7 @@ "unpkg": "dist/vue2-particles.umd.js", "jsdelivr": "dist/vue2-particles.umd.js", "repository": { - "url": "https://github.com/tsparticles/tsparticles.git", + "url": "git+https://github.com/tsparticles/tsparticles.git", "type": "git", "directory": "wrappers/vue2" }, diff --git a/wrappers/vue3/package.json b/wrappers/vue3/package.json index 874fe8b43e8..7e3d37993d8 100644 --- a/wrappers/vue3/package.json +++ b/wrappers/vue3/package.json @@ -81,7 +81,7 @@ "README.md" ], "repository": { - "url": "https://github.com/tsparticles/tsparticles.git", + "url": "git+https://github.com/tsparticles/tsparticles.git", "type": "git", "directory": "wrappers/vue3" }, diff --git a/wrappers/webcomponents/package.json b/wrappers/webcomponents/package.json index 2b594845abc..d2363256687 100644 --- a/wrappers/webcomponents/package.json +++ b/wrappers/webcomponents/package.json @@ -57,7 +57,7 @@ ], "main": "dist/web-particles.js", "repository": { - "url": "https://github.com/tsparticles/tsparticles.git", + "url": "git+https://github.com/tsparticles/tsparticles.git", "type": "git", "directory": "wrappers/webcomponents" }, diff --git a/wrappers/wordpress/package.json b/wrappers/wordpress/package.json index 99545c709dc..5015a07f478 100644 --- a/wrappers/wordpress/package.json +++ b/wrappers/wordpress/package.json @@ -2,6 +2,11 @@ "name": "@tsparticles/wordpress", "version": "4.0.0-beta.15", "description": "Official tsParticles WordPress Plugin - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, React, Riot.js, Solid.js, Inferno.", + "repository": { + "type": "git", + "url": "git+https://github.com/tsparticles/tsparticles.git", + "directory": "wrappers/wordpress" + }, "author": "Matteo Bruni ", "license": "MIT", "main": "build/index.js", From 6071cd4e28b81f074317a6f8bfde039b317b2bc8 Mon Sep 17 00:00:00 2001 From: Matteo Bruni <176620+matteobruni@users.noreply.github.com> Date: Sat, 9 May 2026 14:23:17 +0200 Subject: [PATCH 7/7] build: updated workflow --- .github/workflows/deploy-confetti.yml | 25 +++++++++++++++++++++--- .github/workflows/deploy-website.yml | 28 +++++++++++++++++++++++---- .github/workflows/docs.yml | 22 +++------------------ .github/workflows/nodejs.yml | 20 +++---------------- .github/workflows/npm-publish.yml | 20 +++---------------- 5 files changed, 55 insertions(+), 60 deletions(-) diff --git a/.github/workflows/deploy-confetti.yml b/.github/workflows/deploy-confetti.yml index b75f79d9f37..29604378dbe 100644 --- a/.github/workflows/deploy-confetti.yml +++ b/.github/workflows/deploy-confetti.yml @@ -21,27 +21,45 @@ jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 - - uses: pnpm/action-setup@v5 + - name: Check for confetti changes + id: changes + run: | + if [ "${{ github.event_name }}" = "push" ]; then + if git diff --name-only "${{ github.event.before }}" "${{ github.sha }}" | grep -q "^websites/confetti/"; then + echo "changed=true" >> "$GITHUB_OUTPUT" + else + echo "changed=false" >> "$GITHUB_OUTPUT" + fi + else + echo "changed=true" >> "$GITHUB_OUTPUT" + fi - - uses: actions/setup-node@v4 + - uses: pnpm/action-setup@v6 + if: steps.changes.outputs.changed == 'true' + + - uses: actions/setup-node@v6 + if: steps.changes.outputs.changed == 'true' with: node-version: '24' cache: 'pnpm' cache-dependency-path: websites/confetti/pnpm-lock.yaml - name: Install dependencies + if: steps.changes.outputs.changed == 'true' working-directory: websites/confetti run: pnpm install - name: Build + if: steps.changes.outputs.changed == 'true' working-directory: websites/confetti run: pnpm run build:ci - name: Generate GitHub App token + if: steps.changes.outputs.changed == 'true' id: app-token uses: actions/create-github-app-token@v1 with: @@ -52,6 +70,7 @@ jobs: confetti - name: Deploy to tsparticles/confetti main + if: steps.changes.outputs.changed == 'true' uses: peaceiris/actions-gh-pages@v4 with: token: ${{ steps.app-token.outputs.token }} diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index fa17651f438..351fc931971 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -21,31 +21,50 @@ jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 - - uses: pnpm/action-setup@v5 + - name: Check for website changes + id: changes + run: | + if [ "${{ github.event_name }}" = "push" ]; then + if git diff --name-only "${{ github.event.before }}" "${{ github.sha }}" | grep -q "^websites/website/"; then + echo "changed=true" >> "$GITHUB_OUTPUT" + else + echo "changed=false" >> "$GITHUB_OUTPUT" + fi + else + echo "changed=true" >> "$GITHUB_OUTPUT" + fi - - uses: actions/setup-node@v4 + - uses: pnpm/action-setup@v6 + if: steps.changes.outputs.changed == 'true' + + - uses: actions/setup-node@v6 + if: steps.changes.outputs.changed == 'true' with: - node-version: '22' + node-version: '24' cache: 'pnpm' cache-dependency-path: websites/website/pnpm-lock.yaml - name: Install dependencies + if: steps.changes.outputs.changed == 'true' working-directory: websites/website run: pnpm install --frozen-lockfile - name: Lint + if: steps.changes.outputs.changed == 'true' working-directory: websites/website run: pnpm run lint - name: Build + if: steps.changes.outputs.changed == 'true' working-directory: websites/website run: pnpm run docs:build - name: Generate GitHub App token + if: steps.changes.outputs.changed == 'true' id: app-token uses: actions/create-github-app-token@v1 with: @@ -56,6 +75,7 @@ jobs: website - name: Deploy to tsparticles/website main + if: steps.changes.outputs.changed == 'true' uses: peaceiris/actions-gh-pages@v4 with: token: ${{ steps.app-token.outputs.token }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5097ef2227f..94aba793637 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,28 +19,12 @@ jobs: name: Checkout [main] with: fetch-depth: 0 + - uses: pnpm/action-setup@v6 + - uses: actions/setup-node@v6 with: node-version: '24' - - uses: pnpm/action-setup@v6.0.0 - name: Install pnpm - id: pnpm-install - - name: Get pnpm version - id: pnpm-version - run: | - echo "$(pnpm --version)" - - - name: Get pnpm store directory - id: pnpm-cache - run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + cache: 'pnpm' - - uses: actions/cache@v5 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - run: pnpm install --no-frozen-lockfile - run: pnpm run build:ci:json diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 9e40bf92af4..466f6cadd21 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -28,26 +28,12 @@ jobs: - name: Derive SHAs for nx affected uses: nrwl/nx-set-shas@v5 + - uses: pnpm/action-setup@v6 + - uses: actions/setup-node@v6 with: node-version: "24" - - - uses: pnpm/action-setup@v5.0.0 - with: - cache: true - - - name: Get pnpm store directory - id: pnpm-cache - run: | - echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v5 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + cache: 'pnpm' - name: Install dependencies run: pnpm install diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index c7a2b8fa149..a2c851995ab 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -30,28 +30,14 @@ jobs: with: fetch-depth: 0 + - uses: pnpm/action-setup@v6 + - uses: actions/setup-node@v6 name: Setup Node.js with: node-version: "24" registry-url: https://registry.npmjs.org - - - uses: pnpm/action-setup@v5.0.0 - name: Install pnpm - with: - cache: true - - - name: Get pnpm store directory - id: pnpm-cache - run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v5 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + cache: 'pnpm' - name: Install Dependencies run: pnpm install