diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3950a51..651bca8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,13 +18,14 @@ jobs: pull-requests: write steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 with: fetch-depth: 0 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: + package-manager-cache: false node-version: 20 registry-url: "https://registry.npmjs.org" @@ -32,30 +33,17 @@ jobs: run: npm install -g npm@latest - name: Setup pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3 with: version: 8 run_install: false - - name: Get pnpm store directory - id: pnpm-store - run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - - - name: Use pnpm store - uses: actions/cache@v3 - id: pnpm-cache - with: - path: ${{ steps.pnpm-store.outputs.pnpm_cache_dir }} - key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm- - - name: Install Dependencies - run: pnpm install --frozen-lockfile --prefer-offline + run: pnpm install --frozen-lockfile - name: PR or Publish id: changesets - uses: changesets/action@v1.5.3 + uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3 with: publish: pnpm changeset publish env: