Skip to content

Commit 708a91b

Browse files
author
issayah
committed
ci: update ci to use caching
1 parent cfddaf9 commit 708a91b

File tree

5 files changed

+48
-8
lines changed

5 files changed

+48
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ jobs:
4141
run: |
4242
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
4343
44+
- name: Setup pnpm cache
45+
uses: actions/cache@v3
46+
with:
47+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
48+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49+
restore-keys: |
50+
${{ runner.os }}-pnpm-store-
51+
4452
- name: Install dependencies
4553
run: pnpm install --ignore-scripts --frozen-lockfile
4654

@@ -77,6 +85,14 @@ jobs:
7785
run: |
7886
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
7987
88+
- name: Setup pnpm cache
89+
uses: actions/cache@v3
90+
with:
91+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
92+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
93+
restore-keys: |
94+
${{ runner.os }}-pnpm-store-
95+
8096
- name: Install dependencies
8197
run: pnpm install --ignore-scripts --frozen-lockfile
8298

@@ -157,6 +173,14 @@ jobs:
157173
run: |
158174
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
159175
176+
- name: Setup pnpm cache
177+
uses: actions/cache@v3
178+
with:
179+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
180+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
181+
restore-keys: |
182+
${{ runner.os }}-pnpm-store-
183+
160184
- name: Install dependencies
161185
run: pnpm install --ignore-scripts --frozen-lockfile
162186

.github/workflows/docs-github-pages-deploy.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ jobs:
4242
run: |
4343
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
4444
45+
- name: Setup pnpm cache
46+
uses: actions/cache@v3
47+
with:
48+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
49+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
50+
restore-keys: |
51+
${{ runner.os }}-pnpm-store-
52+
4553
- name: Install dependencies
4654
run: pnpm install --ignore-scripts --frozen-lockfile
4755

.github/workflows/npm-publish.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,18 @@ jobs:
4040
run: |
4141
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
4242
43+
- name: Setup pnpm cache
44+
uses: actions/cache@v3
45+
with:
46+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
47+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
48+
restore-keys: |
49+
${{ runner.os }}-pnpm-store-
50+
4351
- name: Install dependencies
4452
run: pnpm install --ignore-scripts --frozen-lockfile
4553

4654
- name: Publish
47-
run: pnpm publish --tag latest --filter bootstrap-vue-3
55+
run: pnpm publish --tag latest --filter bootstrap-vue-3 --access=public
4856
env:
49-
"npm_config_//registry.npmjs.org/:_authToken": ${{ secrets.NPM_TOKEN }}
57+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/release-dev.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
5959
if: ${{ steps.release.outputs.releases_created }}
6060

61-
- uses: actions/cache@v3
62-
name: Setup pnpm cache
61+
- name: Setup pnpm cache
62+
uses: actions/cache@v3
6363
with:
6464
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
6565
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -72,7 +72,7 @@ jobs:
7272
if: ${{ steps.release.outputs.releases_created }}
7373

7474
- name: Publish
75-
run: pnpm publish --tag develop --filter bootstrap-vue-3
75+
run: pnpm publish --tag develop --filter bootstrap-vue-3 --access=public
7676
env:
7777
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
7878
if: ${{ steps.release.outputs.releases_created }}

.github/workflows/release-main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
5959
if: ${{ steps.release.outputs.releases_created }}
6060

61-
- uses: actions/cache@v3
62-
name: Setup pnpm cache
61+
- name: Setup pnpm cache
62+
uses: actions/cache@v3
6363
with:
6464
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
6565
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -72,7 +72,7 @@ jobs:
7272
if: ${{ steps.release.outputs.releases_created }}
7373

7474
- name: Publish
75-
run: pnpm publish --tag latest --filter bootstrap-vue-3
75+
run: pnpm publish --tag latest --filter bootstrap-vue-3 --access=public
7676
env:
7777
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
7878
if: ${{ steps.release.outputs.releases_created }}

0 commit comments

Comments
 (0)