Skip to content

Commit fe40b39

Browse files
Update CI to use node 22 @W-16170810@ (#178)
* update package.json and CI files * add TODO * update max size * change version of bundlesize2 * bump max size * remove comment
1 parent c9c116f commit fe40b39

File tree

5 files changed

+68
-258
lines changed

5 files changed

+68
-258
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v3
1111
- uses: actions/setup-node@v3
1212
with:
13-
node-version: '14.x'
13+
node-version: '22.x'
1414
registry-url: 'https://registry.npmjs.org'
1515
- run: yarn install
1616
- run: yarn run renderTemplates

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
linux-tests:
1010
strategy:
1111
matrix:
12-
node: [12, 14, 16, 18]
12+
# TODO: remove older versions of node
13+
node: [12, 14, 16, 18, 20, 22]
1314
fail-fast: false
1415
runs-on: ubuntu-latest
1516
steps:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14
1+
22

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"@typescript-eslint/eslint-plugin": "^4.33.0",
123123
"@typescript-eslint/parser": "^4.33.0",
124124
"autoprefixer": "9.8.8",
125-
"bundlesize": "^0.18.1",
125+
"bundlesize2": "^0.0.31",
126126
"depcheck": "^1.4.3",
127127
"dotenv": "^16.0.3",
128128
"eslint": "^7.32.0",
@@ -181,7 +181,7 @@
181181
},
182182
{
183183
"path": "commerce-sdk-isomorphic-with-deps.tgz",
184-
"maxSize": "440 kB"
184+
"maxSize": "550 kB"
185185
}
186186
],
187187
"proxy": "https://SHORTCODE.api.commercecloud.salesforce.com"

0 commit comments

Comments
 (0)