diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c1688c..33c6394 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,15 +21,33 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - cache: 'npm' + + - name: Setup 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 ci + run: pnpm install --frozen-lockfile - name: Build application run: | - npm run build - npm run dist + pnpm run build + pnpm run dist env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}