Skip to content

Commit

Permalink
updated workflow for building with pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Oba-One committed Nov 18, 2024
1 parent 35b28ce commit 14b4024
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "yarn"
- run: yarn
node-version: 23
# Install dependencies with pnpm
- uses: pnpm/action-setup@v4

#👇 Adds Chromatic as a step in the workflow
- uses: chromaui/action@v1
# Options required for Chromatic's GitHub Action
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,17 @@ jobs:
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# Set up Node.js and pnpm
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 23 # Specify the Node.js version you use
registry-url: https://npm.pkg.github.com

- name: Install pnpm
run: npm install -g pnpm

# Install dependencies with pnpm
- name: Install dependencies
run: pnpm install
- uses: pnpm/action-setup@v4

# Publish to GitHub Package Registry (prepublish script will run automatically)
- name: Publish to GitHub Package Registry
Expand Down

0 comments on commit 14b4024

Please sign in to comment.