Skip to content

Commit 103fa6d

Browse files
committed
update Nodejs version in CI files
1 parent b66513d commit 103fa6d

19 files changed

+83
-86
lines changed

.github/workflows/api-test-lint-deploy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
fetch-depth: 0
5757
- uses: 'actions/setup-node@v3'
5858
with:
59-
node-version: '16'
59+
node-version: '18'
6060
- uses: 'actions/setup-python@v4'
6161
with:
6262
python-version: '3.10'
@@ -95,7 +95,7 @@ jobs:
9595
git checkout ${{ github.ref }}
9696
- uses: 'actions/setup-node@v3'
9797
with:
98-
node-version: '16'
98+
node-version: '18'
9999
- uses: 'actions/setup-python@v4'
100100
with:
101101
python-version: ${{ matrix.python }}
@@ -145,7 +145,7 @@ jobs:
145145
git checkout ${{ github.ref }}
146146
- uses: 'actions/setup-node@v3'
147147
with:
148-
node-version: '16'
148+
node-version: '18'
149149
- uses: 'actions/setup-python@v4'
150150
with:
151151
python-version: '3.10'

.github/workflows/app-test-build-deploy.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- uses: 'actions/checkout@v3'
6262
- uses: 'actions/setup-node@v3'
6363
with:
64-
node-version: '16'
64+
node-version: '18'
6565
- name: 'install udev'
6666
run: sudo apt-get update && sudo apt-get install libudev-dev
6767
- name: 'set complex environment variables'
@@ -110,7 +110,7 @@ jobs:
110110
git checkout ${{ github.ref }}
111111
- uses: 'actions/setup-node@v3'
112112
with:
113-
node-version: '16'
113+
node-version: '18'
114114
- uses: actions/setup-python@v4
115115
with:
116116
python-version: '3.10'
@@ -243,7 +243,7 @@ jobs:
243243
git checkout ${{ github.ref }}
244244
- uses: 'actions/setup-node@v3'
245245
with:
246-
node-version: '16'
246+
node-version: '18'
247247
- uses: actions/setup-python@v4
248248
with:
249249
python-version: '3.10'
@@ -427,7 +427,7 @@ jobs:
427427
git checkout ${{ github.ref }}
428428
- uses: 'actions/setup-node@v3'
429429
with:
430-
node-version: '16'
430+
node-version: '18'
431431
- name: 'install udev'
432432
run: sudo apt-get update && sudo apt-get install libudev-dev
433433
- name: 'set complex environment variables'

.github/workflows/components-test-build-deploy.yaml

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- uses: 'actions/checkout@v3'
4545
- uses: 'actions/setup-node@v3'
4646
with:
47-
node-version: '16'
47+
node-version: '18'
4848
- name: 'install udev for usb-detection'
4949
run: sudo apt-get update && sudo apt-get install libudev-dev
5050
- name: 'cache yarn cache'
@@ -78,7 +78,7 @@ jobs:
7878
- uses: 'actions/checkout@v3'
7979
- uses: 'actions/setup-node@v3'
8080
with:
81-
node-version: '16'
81+
node-version: '18'
8282
- name: 'install udev for usb-detection'
8383
run: sudo apt-get update && sudo apt-get install libudev-dev
8484
- name: 'cache yarn cache'
@@ -104,29 +104,30 @@ jobs:
104104
path: storybook-static
105105

106106
determine-build-type:
107-
runs-on: 'ubuntu-latest'
108-
name: 'Determine build type'
109-
outputs:
110-
type: ${{steps.determine-build-type.outputs.type}}
111-
steps:
112-
- id: determine-build-type
113-
run: |
114-
echo "Determining build type for event ${{github.event_type}} and ref ${{github.ref}}"
115-
if [ "${{ format('{0}', github.ref == 'refs/heads/edge') }}" = "true" ] ; then
116-
echo "storybook s3 builds for edge"
117-
echo 'type=storybook' >> $GITHUB_OUTPUT
118-
elif [ "${{ format('{0}', startsWith(github.ref, 'refs/tags/components')) }}" = "true" ] ; then
119-
echo "publish builds for components tags"
120-
echo 'type=publish' >> $GITHUB_OUTPUT
121-
else
122-
echo "No build for ref ${{github.ref}} and event ${{github.event_type}}"
123-
echo 'type=none' >> $GITHUB_OUTPUT
124-
fi
107+
runs-on: 'ubuntu-latest'
108+
name: 'Determine build type'
109+
outputs:
110+
type: ${{steps.determine-build-type.outputs.type}}
111+
steps:
112+
- id: determine-build-type
113+
run: |
114+
echo "Determining build type for event ${{github.event_type}} and ref ${{github.ref}}"
115+
if [ "${{ format('{0}', github.ref == 'refs/heads/edge') }}" = "true" ] ; then
116+
echo "storybook s3 builds for edge"
117+
echo 'type=storybook' >> $GITHUB_OUTPUT
118+
elif [ "${{ format('{0}', startsWith(github.ref, 'refs/tags/components')) }}" = "true" ] ; then
119+
echo "publish builds for components tags"
120+
echo 'type=publish' >> $GITHUB_OUTPUT
121+
else
122+
echo "No build for ref ${{github.ref}} and event ${{github.event_type}}"
123+
echo 'type=none' >> $GITHUB_OUTPUT
124+
fi
125125
126126
deploy-components:
127127
name: 'deploy components storybook artifact to S3'
128128
runs-on: 'ubuntu-22.04'
129-
needs: ['js-unit-test', 'build-components-storybook', 'determine-build-type']
129+
needs:
130+
['js-unit-test', 'build-components-storybook', 'determine-build-type']
130131
if: needs.determine-build-type.outputs.type != 'none'
131132
steps:
132133
- uses: 'actions/checkout@v3'
@@ -138,7 +139,7 @@ jobs:
138139
git checkout ${{ github.ref }}
139140
- uses: 'actions/setup-node@v3'
140141
with:
141-
node-version: '16'
142+
node-version: '18'
142143
- name: 'set complex environment variables'
143144
id: 'set-vars'
144145
uses: actions/github-script@v6
@@ -174,7 +175,7 @@ jobs:
174175
git checkout ${{ github.ref }}
175176
- uses: 'actions/setup-node@v3'
176177
with:
177-
node-version: '16'
178+
node-version: '18'
178179
registry-url: 'https://registry.npmjs.org'
179180
- name: 'cache yarn cache'
180181
uses: actions/cache@v3
@@ -203,13 +204,10 @@ jobs:
203204
json -I -f ./components/package.json -e "this.dependencies['@opentrons/shared-data']=\"$VERSION_STRING\""
204205
- uses: 'actions/setup-node@v3'
205206
with:
206-
node-version: '16'
207+
node-version: '18'
207208
registry-url: 'https://registry.npmjs.org'
208209
- name: 'publish to npm registry'
209-
env:
210+
env:
210211
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
211212
run: |
212213
cd ./components && echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ./.npmrc && npm publish --access public
213-
214-
215-

.github/workflows/docs-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
git checkout ${{ github.ref }}
5252
- uses: 'actions/setup-node@v3'
5353
with:
54-
node-version: '16'
54+
node-version: '18'
5555
- uses: 'actions/setup-python@v3'
5656
with:
5757
python-version: '3.10'

.github/workflows/g-code-testing-lint-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: sudo apt-get update && sudo apt-get install libudev-dev
5050
- uses: 'actions/setup-node@v3'
5151
with:
52-
node-version: '16'
52+
node-version: '18'
5353
- name: 'set complex environment variables'
5454
id: 'set-vars'
5555
uses: actions/github-script@v6

.github/workflows/http-docs-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
python-version: '3.10'
5555
- uses: 'actions/setup-node@v3'
5656
with:
57-
node-version: '16'
57+
node-version: '18'
5858
- uses: './.github/actions/python/setup'
5959
with:
6060
project: 'robot-server'

.github/workflows/js-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- uses: 'actions/checkout@v3'
4646
- uses: 'actions/setup-node@v3'
4747
with:
48-
node-version: '16'
48+
node-version: '18'
4949
- name: 'set complex environment variables'
5050
id: 'set-vars'
5151
uses: actions/github-script@v6

.github/workflows/ll-test-build-deploy.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- uses: 'actions/checkout@v3'
4848
- uses: 'actions/setup-node@v3'
4949
with:
50-
node-version: '16'
50+
node-version: '18'
5151
# https://github.com/actions/checkout/issues/290
5252
- name: 'Fix actions/checkout odd handling of tags'
5353
if: startsWith(github.ref, 'refs/tags')
@@ -93,7 +93,7 @@ jobs:
9393
git checkout ${{ github.ref }}
9494
- uses: 'actions/setup-node@v3'
9595
with:
96-
node-version: '16'
96+
node-version: '18'
9797
- name: 'install libudev for usb-detection'
9898
run: sudo apt-get update && sudo apt-get install libudev-dev
9999
- name: 'cache yarn cache'
@@ -133,7 +133,7 @@ jobs:
133133
git checkout ${{ github.ref }}
134134
- uses: 'actions/setup-node@v3'
135135
with:
136-
node-version: '16'
136+
node-version: '18'
137137
- name: 'install libudev for usb-detection'
138138
run: sudo apt-get update && sudo apt-get install libudev-dev
139139
- name: 'cache yarn cache'
@@ -176,7 +176,7 @@ jobs:
176176
git checkout ${{ github.ref }}
177177
- uses: 'actions/setup-node@v3'
178178
with:
179-
node-version: '16'
179+
node-version: '18'
180180
- name: 'install udev for usb-detection'
181181
run: sudo apt-get update && sudo apt-get install libudev-dev
182182
- name: 'set complex environment variables'

.github/workflows/notify-server-lint-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
fetch-depth: 0
5252
- uses: 'actions/setup-node@v3'
5353
with:
54-
node-version: '16'
54+
node-version: '18'
5555
- uses: 'actions/setup-python@v4'
5656
with:
5757
python-version: '3.10'

.github/workflows/pd-test-build-deploy.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
git checkout ${{ github.ref }}
5454
- uses: 'actions/setup-node@v3'
5555
with:
56-
node-version: '16'
56+
node-version: '18'
5757
- name: 'install udev for usb-detection'
5858
run: sudo apt-get update && sudo apt-get install libudev-dev
5959
- name: 'cache yarn cache'
@@ -98,7 +98,7 @@ jobs:
9898
git checkout ${{ github.ref }}
9999
- uses: 'actions/setup-node@v3'
100100
with:
101-
node-version: '16'
101+
node-version: '18'
102102
- name: 'install udev for usb-detection'
103103
if: startsWith(matrix.os, 'ubuntu')
104104
run: sudo apt-get update && sudo apt-get install libudev-dev
@@ -135,7 +135,7 @@ jobs:
135135
git checkout ${{ github.ref }}
136136
- uses: 'actions/setup-node@v3'
137137
with:
138-
node-version: '16'
138+
node-version: '18'
139139
- name: 'install udev for usb-detection'
140140
run: sudo apt-get update && sudo apt-get install libudev-dev
141141
- name: 'cache yarn cache'
@@ -178,7 +178,7 @@ jobs:
178178
git checkout ${{ github.ref }}
179179
- uses: 'actions/setup-node@v3'
180180
with:
181-
node-version: '16'
181+
node-version: '18'
182182
- name: 'install udev for usb-detection'
183183
run: sudo apt-get update && sudo apt-get install libudev-dev
184184
- name: 'set complex environment variables'

0 commit comments

Comments
 (0)