From 2f3645b3c11d998362f8179c5200f708d8a64eec Mon Sep 17 00:00:00 2001 From: Nikolay Kostyurin Date: Mon, 23 Oct 2023 13:07:57 +0200 Subject: [PATCH] fix: publish action --- .github/workflows/publish.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0a068035..2837033b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,8 +23,27 @@ jobs: node-version-file: '.nvmrc' cache: 'npm' - - name: Install Dependencies - run: npm ci + - name: Install 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 + + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Create Release Pull Request or Publish to npm id: changesets