Skip to content

Commit

Permalink
install node modules without using custom Khan action
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinb-khan committed Sep 21, 2024
1 parent 136859c commit 7a3c3b9
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,25 @@ jobs:
with:
fetch-depth: 0

- name: Install & cache node_modules
uses: ./.github/actions/shared-node-cache
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v4
with:
node-version: ${{ matrix.node-version }}
ssh-private-key: ${{ secrets.KHAN_ACTIONS_BOT_SSH_PRIVATE_KEY }}
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-node_modules-
- name: Install
run: yarn install

- name: Build Storybook
run: yarn build-storybook
Expand Down

0 comments on commit 7a3c3b9

Please sign in to comment.