Skip to content

Commit

Permalink
build(node): switch to node 20 (#961)
Browse files Browse the repository at this point in the history
* build(node): switch to node 20

* build(node): update build scripts to node 20
  • Loading branch information
ADobin authored Nov 11, 2023
1 parent 5d1d89d commit c63d818
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ name: Build and deploy
on:
# Triggers the workflow on push or pull request events but only for the source branch
push:
branches: [ source ]
branches: [source]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -17,7 +17,7 @@ jobs:
build-and-deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest

name: Build and deploy

# Steps represent a sequence of tasks that will be executed as part of the job
Expand All @@ -27,15 +27,16 @@ jobs:

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20.9.x'

- name: Install and Build 🔧
- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: master # The branch the action should deploy to.
folder: build # The folder the action should deploy.

4 changes: 3 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Pull request validation
on:
# Triggers the workflow on pull request events but only for the source branch
pull_request:
branches: [ source ]
branches: [source]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -22,6 +22,8 @@ jobs:

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20.9.x'

- run: npm install
- run: npm run build
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.14.0
v20.9.0

0 comments on commit c63d818

Please sign in to comment.