Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Apr 24, 2024
1 parent cd05101 commit bd4bcc9
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,24 @@ jobs:
with:
node-version-file: .nvmrc

- name: Setup npmrc
run: |
npm set "//npm.pkg.github.com/:_authToken=${{ secrets.GH_TOKEN }}"
npm whoami --registry=https://npm.pkg.github.com/
- name: Authenticate GitHub registry
run: npm set "//npm.pkg.github.com:_authToken=${{ secrets.GH_TOKEN }}"

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9

# - name: Get pnpm store directory
# shell: bash
# run: echo "PNPM_STORE=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Get pnpm store directory
shell: bash
run: echo "PNPM_STORE=$(pnpm store path --silent)" >> $GITHUB_ENV

# - uses: actions/cache@v3
# name: Cache pnpm
# with:
# path: ${{ env.PNPM_STORE }}
# key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: ${{ runner.os }}-pnpm-
- uses: actions/cache@v3
name: Cache pnpm
with:
path: ${{ env.PNPM_STORE }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-

- name: Install dependencies
run: pnpm install
Expand Down

0 comments on commit bd4bcc9

Please sign in to comment.