Skip to content

Commit

Permalink
Use Node.js 20 in workflows & update action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Apr 22, 2024
1 parent 955a6af commit 059b0c4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/bom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,21 @@ on:

workflow_dispatch:

env:
NODE_VERSION: 20

jobs:
bom:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18]

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
node-version: ${{ env.NODE_VERSION }}
cache: "npm"

- name: Install @cyclonedx/cyclonedx-npm
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,27 @@ on:
push:
branches: [main]

env:
NODE_VERSION: 20

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18]

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
dist
scripts
key: build-${{ github.sha }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Build 🏭
Expand All @@ -39,7 +38,7 @@ jobs:
needs: build

steps:
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
dist
Expand Down Expand Up @@ -79,7 +78,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
dist
Expand All @@ -93,7 +92,7 @@ jobs:
sed -e "s~https://eventotest.api~$API_URL~g" dist/app/settings.example.js > dist/app/settings.js
- name: Upload
uses: JamesIves/github-pages-deploy-action@4.1.4
uses: JamesIves/github-pages-deploy-action@4
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
15 changes: 7 additions & 8 deletions .github/workflows/lintAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@ on:
push:
pull_request:

env:
NODE_VERSION: 20

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: lint
Expand Down

0 comments on commit 059b0c4

Please sign in to comment.