Skip to content

Commit

Permalink
update node version in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementCariou committed Apr 13, 2023
1 parent c3698d0 commit cff799b
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,13 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["stable"]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
node-version: '12.x'
- name: Install dependencies
run: npm ci
- name: Build
Expand All @@ -36,4 +28,7 @@ jobs:
with:
branch: gh-pages
folder: build
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write

0 comments on commit cff799b

Please sign in to comment.