Skip to content

Commit

Permalink
update gha and migrate it to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
TGianella committed Jan 7, 2024
1 parent 653808f commit 72ffda3
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,26 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: npm install
run: pnpm install
- name: Build
run: npm run build
run: pnpm build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down

0 comments on commit 72ffda3

Please sign in to comment.