Skip to content

Commit

Permalink
E Upgrades to node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
jwloka committed Apr 11, 2024
1 parent d39f9e6 commit 65858d0
Show file tree
Hide file tree
Showing 12 changed files with 112 additions and 99 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/protect-stable.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# This workflow will run tests using node whenever a commit is pushed to develop or main
# For more information see: https://docs.github.com/en/actions/using-workflows/about-workflows

name: CI
name: CI

on:
push:
# List all branches that shall be tested and are not protected by requiring pull requests to commit to.
# List all branches that shall be tested and are not protected by requiring pull requests to commit to.
branches:
- "develop"
- "main"
Expand All @@ -20,7 +20,7 @@ jobs:
- name: setup
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: install
run: yarn install --frozen-lockfile
Expand Down
56 changes: 28 additions & 28 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# This workflow will run the distribution steps using node when a pull request is created or updated
# For more information see: https://docs.github.com/en/actions/using-workflows/about-workflows

name: PR Continuous Integration
name: PR Continuous Integration

on:
pull_request:
types: [opened, reopened, synchronize]
pull_request:
types: [opened, reopened, synchronize]

jobs:
dist:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3

- name: setup
uses: actions/setup-node@v3
with:
node-version: 16
- name: install
run: yarn install --frozen-lockfile

- name: lint
run: yarn lint

- name: test
run: yarn test

- name: build
run: yarn build

- name: E2E tests
run: yarn test:e2e
dist:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3

- name: setup
uses: actions/setup-node@v3
with:
node-version: 20

- name: install
run: yarn install --frozen-lockfile

- name: lint
run: yarn lint

- name: test
run: yarn test

- name: build
run: yarn build

- name: E2E tests
run: yarn test:e2e
100 changes: 50 additions & 50 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,55 @@
name: Create release and publish npm package

on:
push:
tags:
- 'v*'
push:
tags:
- "v*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup environment
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
scope: '@quatico'

- name: install
run: yarn install --frozen-lockfile

- name: lint
run: yarn lint

- name: test
run: yarn test

- name: build
run: yarn build

- name: E2E tests
run: yarn test:e2e

- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
with:
changelog_file: Release-Notes.md

- name: create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body: ${{ steps.extract-release-notes.outputs.release_notes }}
env:
# The workflow permissions of the project must be updated to 'Workflows have read and write permissions in the repository for all scopes'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: publish
run: yarn publish-npm
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup environment
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
scope: "@quatico"

- name: install
run: yarn install --frozen-lockfile

- name: lint
run: yarn lint

- name: test
run: yarn test

- name: build
run: yarn build

- name: E2E tests
run: yarn test:e2e

- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
with:
changelog_file: Release-Notes.md

- name: create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body: ${{ steps.extract-release-notes.outputs.release_notes }}
env:
# The workflow permissions of the project must be updated to 'Workflows have read and write permissions in the repository for all scopes'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: publish
run: yarn publish-npm
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@swc/jest": "0.2.28",
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.3",
"@types/node": "20.4.9",
"@types/node": "20",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"commander": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@swc/jest": "0.2.28",
"@types/jest": "^29.2.2",
"@types/minimist": "^1.2.2",
"@types/node": "16",
"@types/node": "20",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"concurrently": "^8.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@swc/jest": "0.2.28",
"@types/jest": "^29.2.2",
"@types/lodash": "^4.14.188",
"@types/node": "16",
"@types/node": "20",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"concurrently": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@swc/core": "1.3.76",
"@swc/jest": "0.2.28",
"@types/jest": "^29.2.2",
"@types/node": "16",
"@types/node": "20",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"@typescript-eslint/eslint-plugin": "^6.3.0",
Expand Down Expand Up @@ -58,4 +58,4 @@
"node": ">=16.x",
"yarn": ">=1.20.x"
}
}
}
4 changes: 2 additions & 2 deletions packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@swc/jest": "0.2.28",
"@types/jest": "^29.2.2",
"@types/minimist": "^1.2.2",
"@types/node": "16",
"@types/node": "20",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"commander": "^11.0.0",
Expand All @@ -47,4 +47,4 @@
"node": ">=16.x",
"yarn": ">=1.20.x"
}
}
}
2 changes: 1 addition & 1 deletion packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@swc/core": "1.3.76",
"@swc/jest": "0.2.28",
"@types/jest": "^29.2.2",
"@types/node": "16",
"@types/node": "20",
"@types/react": " 18.2.20",
"@types/react-dom": "18.2.7",
"@types/webpack": "^5.28.0",
Expand Down
14 changes: 10 additions & 4 deletions packages/webpack/test/__data__/module-date/websmith.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,21 @@
"targets": {
"noWrite": {
"writeFile": false,
"addons": ["export-yaml-generator"]
"addons": [
"export-yaml-generator"
]
},
"noWrite2": {
"writeFile": false,
"addons": ["export-yaml-generator"]
"addons": [
"export-yaml-generator"
]
},
"writeOnly": {
"writeFile": true,
"addons": ["export-yaml-generator"]
"addons": [
"export-yaml-generator"
]
}
}
}
}
17 changes: 12 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1615,15 +1615,17 @@
resolved "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c"
integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==

"@types/node@*", "@types/node@20.4.9", "@types/node@>=13.7.0":
"@types/node@*", "@types/node@>=13.7.0":
version "20.4.9"
resolved "https://registry.npmjs.org/@types/node/-/node-20.4.9.tgz#c7164e0f8d3f12dfae336af0b1f7fdec8c6b204f"
integrity sha512-8e2HYcg7ohnTUbHk8focoklEQYvemQmu9M/f43DZVx43kHn0tE3BY/6gSDxS7k0SprtS0NHvj+L80cGLnoOUcQ==

"@types/node@16":
version "16.18.40"
resolved "https://registry.npmjs.org/@types/node/-/node-16.18.40.tgz#968d64746d20cac747a18ca982c0f1fe518c031c"
integrity sha512-+yno3ItTEwGxXiS/75Q/aHaa5srkpnJaH+kdkTVJ3DtJEwv92itpKbxU+FjPoh2m/5G9zmUQfrL4A4C13c+iGA==
"@types/node@20":
version "20.12.7"
resolved "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz#04080362fa3dd6c5822061aa3124f5c152cff384"
integrity sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==
dependencies:
undici-types "~5.26.4"

"@types/node@^11.9.4":
version "11.15.54"
Expand Down Expand Up @@ -9250,6 +9252,11 @@ unbox-primitive@^1.0.2:
has-symbols "^1.0.3"
which-boxed-primitive "^1.0.2"

undici-types@~5.26.4:
version "5.26.5"
resolved "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==

union-value@^1.0.0:
version "1.0.1"
resolved "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847"
Expand Down

0 comments on commit 65858d0

Please sign in to comment.