From d3e518abe668ede5df79f5c7bedb0c961d2c072a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=CE=94BL=C3=98=20=E1=84=83=CE=9E?= Date: Thu, 16 May 2024 16:25:39 -0500 Subject: [PATCH] fix: gh action publish workflow --- .github/workflows/svelte-ci.yml | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/.github/workflows/svelte-ci.yml b/.github/workflows/svelte-ci.yml index 9b33440..360cdff 100644 --- a/.github/workflows/svelte-ci.yml +++ b/.github/workflows/svelte-ci.yml @@ -34,27 +34,13 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - with: - node-version: lts/* - registry-url: 'https://registry.npmjs.org/' - - uses: pnpm/action-setup@v2 - id: pnpm-install + - uses: pnpm/action-setup@v3 with: version: 9 - run_install: false - - name: Get PNPM Store Directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - name: Setup PNPM Cache - uses: actions/cache@v3 + - uses: actions/setup-node@v4 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + node-version: lts/* + registry-url: https://registry.npmjs.org - name: Install dependencies run: pnpm install --no-frozen-lockfile - name: Build @@ -63,4 +49,3 @@ jobs: run: pnpm publish --tag latest --access=public --no-git-checks env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_CONFIG_PROVENANCE: true