Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(node): switch to node 20 #961

Merged
merged 2 commits into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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