feat(workflows): add pnpm cache to publish action
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -41,8 +41,22 @@ jobs:
|
|||||||
- name: Setup npmrc 🏗
|
- name: Setup npmrc 🏗
|
||||||
run: echo "\n//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
|
run: echo "\n//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
|
||||||
|
|
||||||
|
- 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
|
||||||
|
with:
|
||||||
|
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
||||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
- name: Install dependencies 👨🏻💻
|
- name: Install dependencies 👨🏻💻
|
||||||
run: pnpm install --no-frozen-lockfile
|
run: pnpm install
|
||||||
|
|
||||||
- name: Bump versions 🏷 and Publish 🚀
|
- name: Bump versions 🏷 and Publish 🚀
|
||||||
uses: changesets/action@v1
|
uses: changesets/action@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user