Skip to content

Commit

Permalink
Update Github workflows (#211)
Browse files Browse the repository at this point in the history
* update Github workflows

* Update node.js.yml
  • Loading branch information
desmondlsl authored Dec 16, 2024
1 parent 17c4b09 commit 9fbd292
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 25 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,17 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache yarn dependencies
uses: actions/cache@v2
with:
path: ~/.yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-
cache: yarn

- run: yarn install --immutable
- run: yarn install --frozen-lockfile
- run: yarn run production-build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.6.4
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.
Expand Down
17 changes: 5 additions & 12 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,16 @@ jobs:

strategy:
matrix:
node-version: [20.x, 21.x]
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache yarn dependencies
uses: actions/cache@v2
with:
path: ~/.yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-
cache: yarn

- run: yarn install --immutable
- run: yarn install --frozen-lockfile
- run: yarn run build
2 changes: 1 addition & 1 deletion .github/workflows/prettify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Prettify code
uses: creyD/[email protected]
Expand Down

0 comments on commit 9fbd292

Please sign in to comment.