Skip to content

Commit

Permalink
DEV: Support pnpm for Discourse core
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq committed Sep 1, 2024
1 parent 9c1472e commit 7d09d62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 30 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/discourse-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,8 @@ jobs:
if: matrix.build_type == 'backend'
run: bundle exec ruby script/i18n_lint.rb "plugins/${{ env.PLUGIN_NAME }}/locales/{client,server}.en.yml"

- name: Get yarn cache directory
id: yarn-cache-dir
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Yarn cache
uses: actions/cache@v4
id: yarn-cache
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: $(test -f yarn.lock && echo yarn || echo pnpm) install

- name: Fetch app state cache
uses: actions/cache@v4
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/discourse-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,21 +201,8 @@ jobs:
- name: Lint English locale
run: bundle exec ruby script/i18n_lint.rb "tmp/component/locales/en.yml"

- name: Get yarn cache directory
id: yarn-cache-dir
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Yarn cache
uses: actions/cache@v4
id: yarn-cache
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: $(test -f yarn.lock && echo yarn || echo pnpm) install

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

0 comments on commit 7d09d62

Please sign in to comment.