Skip to content

Commit 04169a2

Browse files
authored
Merge pull request tsparticles#5577 from tsparticles/v4
v4.0.0-alpha.18
2 parents 8769e0c + 5526bcc commit 04169a2

File tree

470 files changed

+7581
-8197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

470 files changed

+7581
-8197
lines changed

.github/workflows/nodejs.yml

Lines changed: 32 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -1,167 +1,69 @@
11
name: Node.js CI
22
on:
33
push:
4-
branches:
5-
- main
6-
- v4
7-
- v3
8-
- v2
9-
- v1
4+
branches: [main, v4, v3, v2, v1]
105
pull_request:
11-
branches:
12-
- main
13-
- v4
14-
- v3
15-
- v2
16-
- v1
6+
branches: [main, v4, v3, v2, v1]
177

188
env:
19-
#NX_CLOUD_DISTRIBUTED_EXECUTION: true
20-
#NX_CLOUD_ACCESS_TOKEN: '${{ secrets.NX_CLOUD_ACCESS_TOKEN }}'
21-
#NX_BRANCH: '${{github.event.pull_request.number || github.ref_name}}'
9+
NX_CLOUD_DISTRIBUTED_EXECUTION: true
10+
NX_CLOUD_ACCESS_TOKEN: '${{ secrets.NX_CLOUD_ACCESS_TOKEN }}'
2211
firebaseToken: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TSPARTICLES }}'
2312

2413
jobs:
25-
26-
main:
14+
build-and-deploy:
2715
runs-on: ubuntu-latest
28-
if: ${{ github.event_name != 'pull_request' }}
2916
steps:
3017
- uses: actions/checkout@v6
31-
name: Checkout [main]
3218
with:
19+
ref: ${{ github.event.pull_request.head.ref || github.ref }}
20+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
3321
fetch-depth: 0
34-
#- name: Derive appropriate SHAs for base and head for `nx affected` commands
35-
# uses: nrwl/nx-set-shas@v3
22+
23+
- name: Derive SHAs for nx affected
24+
uses: nrwl/nx-set-shas@v4
25+
3626
- uses: actions/setup-node@v6
3727
with:
3828
node-version: '24'
29+
3930
- uses: pnpm/[email protected]
40-
name: Install pnpm
41-
id: pnpm-install
4231
with:
4332
run_install: false
44-
- name: Get pnpm version
45-
id: pnpm-version
46-
run: |
47-
echo "$(pnpm --version)"
4833

49-
- name: Get pnpm store directory
50-
id: pnpm-cache
51-
run: |
52-
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
34+
- name: Initialize Nx Cloud
35+
run: npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js"
5336

54-
- uses: actions/cache@v5
55-
name: Setup pnpm cache
37+
- name: Setup pnpm cache
38+
uses: actions/cache@v5
5639
with:
57-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
40+
path: ~/.pnpm-store
5841
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
59-
restore-keys: |
60-
${{ runner.os }}-pnpm-store-
61-
- run: pnpm install
62-
#- run: npx nx-cloud start-ci-run
63-
- run: pnpm run prettify:ci:readme
64-
- run: npx lerna run build:ci #--concurrency 3
65-
#- run: npx nx-cloud stop-all-agents
66-
- if: env.firebaseToken != '' && github.ref == 'refs/heads/main'
67-
uses: FirebaseExtended/action-hosting-deploy@v0
68-
with:
69-
repoToken: '${{ secrets.GITHUB_TOKEN }}'
70-
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TSPARTICLES }}'
71-
projectId: tsparticles
72-
channelId: live
7342

74-
- if: env.firebaseToken != '' && github.ref == 'refs/heads/dev'
43+
- name: Install dependencies
44+
run: pnpm install
45+
46+
- name: Prettify README
47+
run: pnpm run prettify:ci:readme
48+
49+
- name: Build packages
50+
run: npx nx affected -t build:ci
51+
52+
- if: env.firebaseToken != '' && github.ref == 'refs/heads/main' && github.event_name == 'push'
7553
uses: FirebaseExtended/action-hosting-deploy@v0
7654
with:
7755
repoToken: '${{ secrets.GITHUB_TOKEN }}'
7856
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TSPARTICLES }}'
7957
projectId: tsparticles
80-
channelId: next
81-
pr:
82-
runs-on: ubuntu-latest
83-
if: ${{ github.event_name == 'pull_request' }}
84-
steps:
85-
- uses: actions/checkout@v6
86-
with:
87-
ref: ${{ github.event.pull_request.head.ref }}
88-
repository: ${{ github.event.pull_request.head.repo.full_name }}
89-
fetch-depth: 0
90-
#- name: Derive appropriate SHAs for base and head for `nx affected` commands
91-
# uses: nrwl/nx-set-shas@v3
92-
- uses: actions/setup-node@v6
93-
with:
94-
node-version: '24'
95-
- uses: pnpm/[email protected]
96-
name: Install pnpm
97-
id: pnpm-install
98-
with:
99-
run_install: false
100-
- name: Get pnpm version
101-
id: pnpm-version
102-
run: |
103-
echo "$(pnpm --version)"
104-
105-
- name: Get pnpm store directory
106-
id: pnpm-cache
107-
run: |
108-
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
58+
channelId: live
10959

110-
- uses: actions/cache@v5
111-
name: Setup pnpm cache
112-
with:
113-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
114-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
115-
restore-keys: |
116-
${{ runner.os }}-pnpm-store-
117-
- run: pnpm install
118-
#- run: npx nx-cloud start-ci-run
119-
- run: pnpm run prettify:ci:readme
120-
- run: npx lerna run build:ci #--concurrency 3
121-
#- run: npx nx-cloud stop-all-agents
122-
- run: echo ${{ github.repository_owner }}
123-
- run: echo ${{ github.actor }}
124-
- if: env.firebaseToken != '' && contains(github.ref, 'refs/pull') && github.actor == 'matteobruni'
60+
- if: env.firebaseToken != '' && github.event_name == 'pull_request' && github.actor == 'matteobruni'
12561
uses: FirebaseExtended/action-hosting-deploy@v0
12662
with:
12763
repoToken: '${{ secrets.GITHUB_TOKEN }}'
12864
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TSPARTICLES }}'
12965
projectId: tsparticles
13066

131-
# agents:
132-
# runs-on: ubuntu-latest
133-
# name: Nx Agent
134-
# timeout-minutes: 60
135-
# strategy:
136-
# matrix:
137-
# agent: [ 1, 2, 3 ]
138-
# steps:
139-
# - uses: actions/checkout@v3
140-
# - uses: actions/setup-node@v3
141-
# with:
142-
# node-version: '20'
143-
# - uses: pnpm/[email protected]
144-
# name: Install pnpm
145-
# id: pnpm-install
146-
# with:
147-
# run_install: false
148-
# - name: Get pnpm version
149-
# id: pnpm-version
150-
# run: |
151-
# echo "$(pnpm --version)"
152-
#
153-
# - name: Get pnpm store directory
154-
# id: pnpm-cache
155-
# run: |
156-
# echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
157-
#
158-
# - uses: actions/cache@v3
159-
# name: Setup pnpm cache
160-
# with:
161-
# path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
162-
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
163-
# restore-keys: |
164-
# ${{ runner.os }}-pnpm-store-
165-
# - run: pnpm install
166-
# - name: Start Nx Agent ${{ matrix.agent }}
167-
# run: npx nx-cloud start-agent
67+
- name: Stop Nx Cloud Session
68+
run: npx nx fix-ci
69+
if: always()

.github/workflows/npm-publish.yml

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,69 @@ permissions:
99
id-token: write
1010
contents: read
1111

12+
env:
13+
NX_CLOUD_DISTRIBUTED_EXECUTION: true
14+
NX_CLOUD_ACCESS_TOKEN: '${{ secrets.NX_CLOUD_ACCESS_TOKEN }}'
15+
1216
jobs:
1317
publish:
1418
runs-on: ubuntu-latest
1519

1620
steps:
1721
- uses: actions/checkout@v6
22+
name: Checkout Source
1823
with:
1924
fetch-depth: 0
2025

2126
- uses: actions/setup-node@v6
27+
name: Setup Node.js
2228
with:
2329
node-version: 24
2430
registry-url: https://registry.npmjs.org
2531

26-
- uses: pnpm/action-setup@v4
32+
- uses: pnpm/[email protected]
33+
name: Install pnpm
2734
with:
2835
run_install: false
2936

30-
- run: pnpm install
37+
- name: Initialize Nx Cloud
38+
run: npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js"
39+
40+
- name: Get pnpm store directory
41+
id: pnpm-cache
42+
run: |
43+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
44+
45+
- uses: actions/cache@v5
46+
name: Setup pnpm cache
47+
with:
48+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
49+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
50+
restore-keys: |
51+
${{ runner.os }}-pnpm-store-
52+
53+
- name: Install Dependencies
54+
run: pnpm install
3155

3256
- name: Build All Packages
33-
run: pnpm run build:ci
57+
run: npx nx run-many -t build:ci
3458
env:
3559
CI: true
3660

37-
- name: Publish
61+
- name: Publish to NPM (OIDC Auth)
3862
run: |
39-
npm config set //registry.npmjs.org/:_authToken ""
40-
4163
TAG="${GITHUB_REF#refs/tags/}"
4264
43-
BASE_CMD="lerna publish from-package --ignore-scripts --loglevel verbose"
65+
# --provenance: Fondamentale per OIDC e sicurezza nel 2026
66+
# --yes: Evita blocchi interattivi in CI
67+
BASE_CMD="npx lerna publish from-package --ignore-scripts --provenance --yes"
68+
69+
echo "Publishing tag: $TAG via OIDC"
4470
4571
if [[ "$TAG" == *"-alpha."* ]]; then
46-
$BASE_CMD --pre-dist-tag alpha --preid alpha
72+
$BASE_CMD --dist-tag alpha
4773
elif [[ "$TAG" == *"-beta."* ]]; then
48-
$BASE_CMD --pre-dist-tag beta --preid beta
74+
$BASE_CMD --dist-tag beta
4975
elif [[ "$TAG" == v1* ]]; then
5076
$BASE_CMD --dist-tag v1
5177
elif [[ "$TAG" == v2* ]]; then
@@ -55,3 +81,7 @@ jobs:
5581
else
5682
$BASE_CMD
5783
fi
84+
85+
- name: Stop Nx Cloud Session
86+
run: npx nx fix-ci
87+
if: always()

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [4.0.0-alpha.18](https://github.com/tsparticles/tsparticles/compare/v4.0.0-alpha.17...v4.0.0-alpha.18) (2026-02-04)
7+
8+
### Bug Fixes
9+
10+
- fix slim loading order ([552e360](https://github.com/tsparticles/tsparticles/commit/552e360a668260461a9928860f1c71dcbc62e60b))
11+
612
# [4.0.0-alpha.17](https://github.com/tsparticles/tsparticles/compare/v4.0.0-alpha.16...v4.0.0-alpha.17) (2026-02-04)
713

814
### Bug Fixes

bundles/all/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [4.0.0-alpha.18](https://github.com/tsparticles/tsparticles/compare/v4.0.0-alpha.17...v4.0.0-alpha.18) (2026-02-04)
7+
8+
**Note:** Version bump only for package @tsparticles/all
9+
610
# [4.0.0-alpha.17](https://github.com/tsparticles/tsparticles/compare/v4.0.0-alpha.16...v4.0.0-alpha.17) (2026-02-04)
711

812
**Note:** Version bump only for package @tsparticles/all

0 commit comments

Comments
 (0)