Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade all packages to use Node.js v20 #132

Merged
merged 60 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
de10805
Bump dependencies and regenerate package-lock.json for the JS package…
eason9487 Apr 19, 2024
2bba6e1
Add the 'node:' prefix to explicitly indicate it requires a Node.js c…
eason9487 Apr 19, 2024
3f41aea
Remove an unused file - ./generators/github/package.json
eason9487 Apr 19, 2024
27594d9
Fix the incompatible paths in the JS package `generator-grow` when co…
eason9487 Apr 19, 2024
b318e27
Fix the tests for the JS package `generator-grow`.
eason9487 Apr 19, 2024
3940152
Bump dependencies and regenerate package-lock.json for the package `g…
eason9487 Apr 19, 2024
5cf4552
Simplify the rollup config for the github-actions package.
eason9487 Apr 22, 2024
44b7e42
Add the 'node:' prefix to explicitly indicate it requires a Node.js c…
eason9487 Apr 19, 2024
fbaf82f
Upgrade the `get-release-notes` action in the `github-actions` packag…
eason9487 Apr 22, 2024
76ed579
Upgrade the `prepare-node` action in the `github-actions` package to …
eason9487 Apr 22, 2024
85280ce
Upgrade the `update-version-tags` action in the `github-actions` pack…
eason9487 Apr 22, 2024
f35e5e9
Upgrade JS packages `jsdoc` and `tracking-jsdoc` to use Node.js v20.
eason9487 Apr 19, 2024
05de223
Add the 'node:' prefix to explicitly indicate it requires a Node.js c…
eason9487 Apr 19, 2024
3a2be27
Upgrade the workflows of the `github-actions` package to use Node.js …
eason9487 Apr 22, 2024
4eace98
Merge pull request #111 from woocommerce/update/108-nodejs-v20-genera…
eason9487 Apr 23, 2024
d680842
Merge pull request #110 from woocommerce/update/108-nodejs-v20-jsdoc
eason9487 Apr 23, 2024
d71c2c1
Update the other `uses` versions in examples of `get-release-notes`, …
eason9487 Apr 23, 2024
089e42a
Merge pull request #112 from woocommerce/update/108-nodejs-v20-github…
eason9487 Apr 23, 2024
57d3404
Bump dependencies and regenerate package-lock.json for this repo with…
eason9487 Apr 23, 2024
16defae
Set .nvmrc to use Node.js v20.
eason9487 Apr 23, 2024
667c918
Fix eslint errors for the samples files.
eason9487 Apr 23, 2024
c8606e5
Update the "Publish Compat Checker package" workflow to use Node.js v20.
eason9487 Apr 23, 2024
1678b80
Upgrade the `automerge-released-trunk` action in the `github-actions`…
eason9487 Apr 23, 2024
9f3d1ac
Upgrade the `prepare-php` action in the `github-actions` package to u…
eason9487 Apr 23, 2024
5e10b6b
Upgrade the `coverage-report` action in the `github-actions` package …
eason9487 Apr 23, 2024
72fc527
Update the version in docs of the `hook-documentation`, `prepare-mysq…
eason9487 Apr 24, 2024
3e59563
Upgrade the `phpcs-diff` action in the `github-actions` package to us…
eason9487 Apr 24, 2024
3bba1ed
Temporarily using test build of `prepare-php`.
eason9487 Apr 24, 2024
c66a259
Upgrade the `eslint-annotation` action in the `github-actions` packag…
eason9487 Apr 24, 2024
7fed7ba
Upgrade the `stylelint-annotation` action in the `github-actions` pac…
eason9487 Apr 24, 2024
9b49e04
Revert "Temporarily using test build of `prepare-php`."
eason9487 Apr 24, 2024
ae77eac
Merge pull request #113 from woocommerce/update/108-nodejs-v20-root-deps
eason9487 Apr 25, 2024
5e32a7a
Merge pull request #114 from woocommerce/update/108-nodejs-v20-github…
eason9487 Apr 25, 2024
e044ab6
Merge pull request #115 from woocommerce/update/108-nodejs-v20-github…
eason9487 Apr 25, 2024
682cc86
Merge pull request #116 from woocommerce/update/108-nodejs-v20-github…
eason9487 Apr 25, 2024
bb7aa16
Merge pull request #117 from woocommerce/update/108-nodejs-v20-github…
eason9487 Apr 25, 2024
03d3867
Merge branch 'trunk' into update/108-nodejs-v20
eason9487 Apr 25, 2024
3364d25
Upgrade the `get-plugin-releases` action in the `github-actions` pack…
eason9487 Apr 25, 2024
223f04a
Make the `get-plugin-releases` action in the `github-actions` package…
eason9487 Apr 25, 2024
e0f4a90
Upgrade the `run-qit-extension` action in the `github-actions` packag…
eason9487 Apr 25, 2024
f0b21e0
Temporarily test the `run-qit-extension` action of the current PR bra…
eason9487 Apr 25, 2024
de493d1
Upgrade the `merge-trunk-develop-pr` action in the `github-actions` p…
eason9487 Apr 25, 2024
3f53ff2
Upgrade the `prepare-extension-release` action in the `github-actions…
eason9487 Apr 25, 2024
f02d09e
Upgrade the `publish-extension-dev-build` action in the `github-actio…
eason9487 Apr 25, 2024
3f7ee00
Temporarily using test build of `get-release-notes`.
eason9487 Apr 25, 2024
87914e7
Merge pull request #119 from woocommerce/update/108-nodejs-v20-github…
eason9487 Apr 26, 2024
a154787
Revert "Temporarily test the `run-qit-extension` action of the curren…
eason9487 Apr 26, 2024
f61e6e1
Revert "Temporarily using test build of `get-release-notes`."
eason9487 Apr 26, 2024
19da941
Merge pull request #120 from woocommerce/update/108-nodejs-v20-github…
eason9487 Apr 26, 2024
14e1521
Merge pull request #121 from woocommerce/update/108-nodejs-v20-github…
eason9487 Apr 26, 2024
2e94295
Upgrade the `branch-label` action in the `github-actions` package to …
eason9487 Apr 26, 2024
9b2bb6b
Update the README for the `github-actions` package to be based on Nod…
eason9487 Apr 26, 2024
424eada
Add the reason for the need of write permission and usage reference t…
eason9487 May 9, 2024
a51305f
Merge pull request #122 from woocommerce/update/108-nodejs-v20-github…
eason9487 May 9, 2024
c97deef
Change to only recommend using Node.js v20 for the development of the…
eason9487 May 9, 2024
66d83d2
Merge pull request #123 from woocommerce/update/108-nodejs-v20-github…
eason9487 May 9, 2024
d676835
Merge branch 'trunk' into update/108-nodejs-v20
eason9487 May 13, 2024
ac48811
Upgrade the templates to use latest versions of GitHub actions in the…
eason9487 May 13, 2024
d746fe5
Merge pull request #129 from woocommerce/update/108-nodejs-v20-genera…
eason9487 May 14, 2024
f2d5c09
Merge branch 'trunk' into update/108-nodejs-v20
eason9487 May 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/github-actions-create-release.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import fs from 'fs';
import fs from 'node:fs';

/**
* Internal dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-action-publish-compat-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Publish Compat Checker package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Deploy
uses: s0/git-publish-subdir-action@develop
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/github-actions-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
if: ${{ github.event.pull_request.head.ref == 'release/actions' && github.event.review.state == 'approved' }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create release
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const workspace = '${{ github.workspace }}';
Expand All @@ -27,7 +27,7 @@ jobs:
} );

- name: Upload release artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: release
path: /tmp/release.json
4 changes: 2 additions & 2 deletions .github/workflows/github-actions-create-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare node
uses: ./packages/github-actions/actions/prepare-node
with:
node-version: 14
node-version: 20
cache-dependency-path: ./packages/github-actions/package-lock.json
install-deps: "no"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-actions-delete-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: github.event.ref_type == 'branch'
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: trunk

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/github-actions-prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check created release branch
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
if ( ! context.payload.created ) {
Expand All @@ -27,12 +27,12 @@ jobs:
needs: CheckCreatedBranch
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare node
uses: ./packages/github-actions/actions/prepare-node
with:
node-version: 14
node-version: 20
cache-dependency-path: ./packages/github-actions/package-lock.json
install-deps: "no"

Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:

jq ".version=\"${NEXT_VER}\"" package.json > package.json.tmp
mv package.json.tmp package.json
jq ".version=\"${NEXT_VER}\"" package-lock.json > package-lock.json.tmp
jq ".version=\"${NEXT_VER}\" | .packages.\"\".version=\"${NEXT_VER}\"" package-lock.json > package-lock.json.tmp
mv package-lock.json.tmp package-lock.json

git config user.name github-actions[bot]
Expand All @@ -85,7 +85,7 @@ jobs:
git push

- name: Create a pull request for release
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const workspace = '${{ github.workspace }}';
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/github-actions-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
release: ${{ steps.set-result.outputs.release }}
steps:
- name: Check tag name or workflow_run conclusion
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const { payload, eventName } = context;
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Get release artifact
id: set-result
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const fs = require( 'fs' );
Expand Down Expand Up @@ -77,14 +77,14 @@ jobs:
echo "tag_name=${TAG_NAME}" >> $GITHUB_OUTPUT

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.resolve-tag.outputs.tag_name }}

- name: Prepare node
uses: ./packages/github-actions/actions/prepare-node
with:
node-version: 14
node-version: 20
cache-dependency-path: ./packages/github-actions/package-lock.json
install-deps: "no"

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/fermium
v20
Loading
Loading