Skip to content

Commit

Permalink
Build and deploy with Node 20 (#6895)
Browse files Browse the repository at this point in the history
* Build and deploy with Node 20
Upgrade the build scripts from `lts/hydrogen` to `lts/iron`.

* Update step name
  • Loading branch information
eatyourgreens authored Oct 25, 2023
1 parent 4a08cf1 commit c5405ba
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
steps:
# See: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/configuring-a-workflow#using-the-checkout-action
- uses: actions/checkout@v3
- name: Use Node.js 18
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 'lts/hydrogen'
node-version: 'lts/iron'
cache: 'npm'

- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: zooniverse/ci-cd/.github/workflows/npm_build.yaml@main
with:
commit_id: ${{ github.sha }}
node_version: 'lts/hydrogen'
node_version: 'lts/iron'
output: 'dist'
script: 'build-production'
deploy_staging_branch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: zooniverse/ci-cd/.github/workflows/npm_build.yaml@main
with:
commit_id: ${{ github.sha }}
node_version: 'lts/hydrogen'
node_version: 'lts/iron'
output: 'dist'
script: 'build-production'
deploy_production:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: zooniverse/ci-cd/.github/workflows/npm_build.yaml@main
with:
commit_id: ${{ github.sha }}
node_version: 'lts/hydrogen'
node_version: 'lts/iron'
output: 'dist'
script: 'build-production'
deploy_staging:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine

WORKDIR /src
RUN chown -R node:node /src
Expand Down

0 comments on commit c5405ba

Please sign in to comment.