mirror of
				https://github.com/pnpm/action-setup.git
				synced 2025-10-31 01:12:08 +08:00 
			
		
		
		
	Merge pull request #75 from ojeytonwilliams/fix/caching-example
docs: update the caching example
This commit is contained in:
		| @@ -116,21 +116,19 @@ jobs: | ||||
|  | ||||
|       - uses: pnpm/action-setup@v2 | ||||
|         name: Install pnpm | ||||
|         id: pnpm-install | ||||
|         with: | ||||
|           version: 7 | ||||
|           run_install: false | ||||
|  | ||||
|       - name: Get pnpm store directory | ||||
|         id: pnpm-cache | ||||
|         shell: bash | ||||
|         run: | | ||||
|           echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||||
|           echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||||
|  | ||||
|       - uses: actions/cache@v3 | ||||
|         name: Setup pnpm cache | ||||
|         with: | ||||
|           path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||||
|           path: ${{ env.STORE_PATH }} | ||||
|           key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||||
|           restore-keys: | | ||||
|             ${{ runner.os }}-pnpm-store- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user