Skip to content

Commit

Permalink
chore: update workflow for pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
imp-dance committed Jan 14, 2024
1 parent b73c93c commit f2fc277
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ['main']
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -17,11 +17,17 @@ permissions:

# Allow one concurrent deployment
concurrency:
group: 'pages'
group: "pages"
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
install:
runs-on: ubuntu-latest

steps:
- uses: pnpm/action-setup@v2
with:
version: 8
deploy:
environment:
name: github-pages
Expand All @@ -34,18 +40,17 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm install
run: pnpm install
- name: Build
run: npm run build
run: pnpm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload dist repository
path: './dist'
path: "./dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit f2fc277

Please sign in to comment.