Skip to content

Commit de41cb5

Browse files
committed
chore: update GitHub Actions workflow to use latest Ubuntu and action versions
1 parent 21564b7 commit de41cb5

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,20 @@ permissions:
1414

1515
jobs:
1616
build:
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121

2222
- name: Install Node.js
23-
uses: actions/setup-node@v2
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: '18'
26+
cache: 'npm'
2627

2728
- name: Build
2829
run: |
29-
npm install
30+
npm ci
3031
npm run build
3132
3233
- name: Upload artifact
@@ -35,7 +36,7 @@ jobs:
3536
path: ./build
3637

3738
deploy:
38-
runs-on: ubuntu-20.04
39+
runs-on: ubuntu-latest
3940
needs: build
4041
if: github.event_name == 'push'
4142
environment:

0 commit comments

Comments
 (0)