Skip to content

Commit

Permalink
Modify and repair workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PatriceJada committed Aug 16, 2022
1 parent 7b648e5 commit 6e4d353
Show file tree
Hide file tree
Showing 3 changed files with 19,188 additions and 13,471 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build_deploy.js.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: Build and deploy on gh-pages

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
Expand All @@ -18,15 +20,18 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install and Build
uses: npm install && npm run build

- uses: actions/checkout@v3
- name: Install and Build on ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm ci
- run: npm run build --if-present
- name: Deploy
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
branch: gh-pages

6 changes: 3 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: Test with node.js CI

on:
push:
Expand All @@ -16,12 +16,12 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [16.x, 17.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
Expand Down
Loading

0 comments on commit 6e4d353

Please sign in to comment.