Skip to content

Commit

Permalink
DEV: Support pnpm for Discourse core (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Sep 2, 2024
1 parent 9c1472e commit f7f4895
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/discourse-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,19 +221,20 @@ jobs:

- name: Get yarn cache directory
id: yarn-cache-dir
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
run: if [ -f yarn.lock ]; then echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT; fi

- name: Yarn cache
uses: actions/cache@v4
id: yarn-cache
if: ${{ steps.yarn-cache-dir.outputs.dir }}
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Yarn install
run: yarn install
- name: Install JS Dependencies
run: if [ -f yarn.lock ]; then yarn install; else pnpm install; fi

- name: Fetch app state cache
uses: actions/cache@v4
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/discourse-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,20 @@ jobs:

- name: Get yarn cache directory
id: yarn-cache-dir
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
run: if [ -f yarn.lock ]; then echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT; fi

- name: Yarn cache
uses: actions/cache@v4
id: yarn-cache
if: ${{ steps.yarn-cache-dir.outputs.dir }}
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Yarn install
run: yarn install
- name: Install JS dependencies
run: if [ -f yarn.lock ]; then yarn install; else pnpm install; fi

- name: Fetch app state cache
uses: actions/cache@v4
Expand Down

0 comments on commit f7f4895

Please sign in to comment.