From 1e17457c5dd0ba27604d85345042a8b377d057df Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 11 Apr 2025 18:20:15 +0000 Subject: [PATCH 1/3] PR-247699: fixing name of unit testing workflow. --- .github/workflows/main-workflow.yml | 10 +++------- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main-workflow.yml b/.github/workflows/main-workflow.yml index 886602a..82bcdae 100644 --- a/.github/workflows/main-workflow.yml +++ b/.github/workflows/main-workflow.yml @@ -14,16 +14,12 @@ jobs: # Job to run unit tests unit-front-end-testing: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v3 - - name: Use Node.js 16 + - name: Use Node.js latest uses: actions/setup-node@v3 with: - node-version: 16 + node-version: latest cache: 'npm' registry-url: https://registry.npmjs.org/ - run: npm ci @@ -73,7 +69,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: latest registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run build diff --git a/package-lock.json b/package-lock.json index e0d98d8..07eaa90 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.9.31", + "version": "3.9.32", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@aleleba/create-react-ssr", - "version": "3.9.31", + "version": "3.9.32", "license": "MIT", "dependencies": { "@babel/register": "^7.25.9", @@ -54,7 +54,7 @@ "@testing-library/user-event": "^14.6.1", "@types/jest": "^29.5.14", "@types/node": "^22.14.0", - "@types/react": "^19.1.0", + "@types/react": "^19.1.1", "@types/react-dom": "^19.1.2", "@types/webpack": "^5.28.5", "@types/webpack-hot-middleware": "^2.25.9", @@ -4360,9 +4360,9 @@ "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" }, "node_modules/@types/react": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.0.tgz", - "integrity": "sha512-UaicktuQI+9UKyA4njtDOGBD/67t8YEBt2xdfqu8+gP9hqPUPsiXlNPcpS2gVdjmis5GKPG3fCxbQLVgxsQZ8w==", + "version": "19.1.1", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.1.tgz", + "integrity": "sha512-ePapxDL7qrgqSF67s0h9m412d9DbXyC1n59O2st+9rjuuamWsZuD2w55rqY12CbzsZ7uVXb5Nw0gEp9Z8MMutQ==", "devOptional": true, "license": "MIT", "dependencies": { @@ -22184,9 +22184,9 @@ "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" }, "@types/react": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.0.tgz", - "integrity": "sha512-UaicktuQI+9UKyA4njtDOGBD/67t8YEBt2xdfqu8+gP9hqPUPsiXlNPcpS2gVdjmis5GKPG3fCxbQLVgxsQZ8w==", + "version": "19.1.1", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.1.tgz", + "integrity": "sha512-ePapxDL7qrgqSF67s0h9m412d9DbXyC1n59O2st+9rjuuamWsZuD2w55rqY12CbzsZ7uVXb5Nw0gEp9Z8MMutQ==", "devOptional": true, "requires": { "csstype": "^3.0.2" diff --git a/package.json b/package.json index 20d3c0e..c44b166 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.9.31", + "version": "3.9.32", "description": "Starter Kit of server side render of react", "bin": "./bin/cli.js", "main": "src/server/index", @@ -78,7 +78,7 @@ "@testing-library/user-event": "^14.6.1", "@types/jest": "^29.5.14", "@types/node": "^22.14.0", - "@types/react": "^19.1.0", + "@types/react": "^19.1.1", "@types/react-dom": "^19.1.2", "@types/webpack": "^5.28.5", "@types/webpack-hot-middleware": "^2.25.9", From 6ec54f195a2f6df84a940b0862d0a51ee6703d69 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 11 Apr 2025 18:28:28 +0000 Subject: [PATCH 2/3] PR-247699: using node LTS on CI/CD --- .github/workflows/main-workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main-workflow.yml b/.github/workflows/main-workflow.yml index 82bcdae..5d9270e 100644 --- a/.github/workflows/main-workflow.yml +++ b/.github/workflows/main-workflow.yml @@ -16,10 +16,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Use Node.js latest + - name: Use Node.js lts uses: actions/setup-node@v3 with: - node-version: latest + node-version: lts cache: 'npm' registry-url: https://registry.npmjs.org/ - run: npm ci @@ -69,7 +69,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: latest + node-version: lts registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run build From 1ec2fc29a18188460524025d838f3d48ef6a1c13 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 11 Apr 2025 18:37:00 +0000 Subject: [PATCH 3/3] PR-247699: using latest versions of workflows versions. --- .github/workflows/main-workflow.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main-workflow.yml b/.github/workflows/main-workflow.yml index 5d9270e..daee21c 100644 --- a/.github/workflows/main-workflow.yml +++ b/.github/workflows/main-workflow.yml @@ -15,11 +15,11 @@ jobs: unit-front-end-testing: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Use Node.js lts - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Use Node.js LTS + uses: actions/setup-node@v4 with: - node-version: lts + node-version: 'lts/*' cache: 'npm' registry-url: https://registry.npmjs.org/ - run: npm ci @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Install NPM dependencies, cache them correctly # and run all Cypress tests - name: Install dependencies @@ -48,7 +48,7 @@ jobs: PORT: 3000 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Install NPM dependencies, cache them correctly # and run all Cypress tests - name: Install dependencies @@ -66,10 +66,10 @@ jobs: needs: [ unit-front-end-testing, cypress-components-testing, end-to-end-testing ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: lts + node-version: 'lts/*' registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run build @@ -80,10 +80,10 @@ jobs: needs: [ unit-front-end-testing, cypress-components-testing, end-to-end-testing ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 'lts/*' registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish --access=public