Skip to content

Commit

Permalink
CI-CD: action should use yarn instead of npm
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdjohnson committed Apr 14, 2024
1 parent a2f19c9 commit bc77fe9
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/deploy_to_gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
push:
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
Expand All @@ -30,22 +27,27 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
node-version: 21

- name: Run yarn install
run: yarn

- name: Run yarn build
run: yarn build

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload dist repository
path: './dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit bc77fe9

Please sign in to comment.