Skip to content

Commit

Permalink
Add missing install step
Browse files Browse the repository at this point in the history
  • Loading branch information
xeho91 committed May 14, 2024
1 parent 0de17f1 commit 930cbf4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# https://github.com/actions/checkout
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v3

# https://nodejs.org/api/corepack.html
- name: Enable corepack (for pnpm)
run: corepack enable

# https://github.com/actions/setup-node
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 20
- name: Install dependencies
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

# https://pnpm.io/cli/install
- name: Install Node.js dependencies with pnpm
run: >
pnpm install
--frozen-lockfile
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
cache: pnpm
node-version: 20

# https://pnpm.io/cli/install
- name: Install Node.js dependencies with pnpm
run: >
pnpm install
--frozen-lockfile
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down

0 comments on commit 930cbf4

Please sign in to comment.