diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index 61c960bb..60a16af0 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -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: @@ -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 @@ -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/github-pages-deploy-action@v4.4.3 with: branch: master # The branch the action should deploy to. folder: build # The folder the action should deploy. - diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 6d2d3ab3..b61d5d09 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -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: @@ -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 diff --git a/.node-version b/.node-version index bf79505b..805b5a4e 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -v16.14.0 +v20.9.0