Skip to content

Commit

Permalink
Feat: use yarn rather npm
Browse files Browse the repository at this point in the history
  • Loading branch information
oreoseenoevil committed Oct 2, 2023
1 parent d3075a6 commit fda2f55
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# 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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI
name: Build and Deploy Page

on:
push:
Expand All @@ -24,13 +21,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
cache: 'yarn' # Cache Yarn dependencies
- run: yarn install # Use Yarn for dependency installation
- run: yarn build --if-present # Use Yarn for building
- run: yarn test # Use Yarn for running tests
- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -- -u "github-actions-bot <[email protected]>"
yarn run deploy -- -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fda2f55

Please sign in to comment.