Skip to content

Commit 753eff3

Browse files
committed
ci: pnpm support
1 parent 816d797 commit 753eff3

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

.github/workflows/docs.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,46 @@ on:
88
- main
99
paths:
1010
- 'docs/**'
11+
- '.github/workflows/docs.yml'
1112

1213
jobs:
1314
deploy_live_website:
1415
runs-on: ubuntu-latest
1516
steps:
16-
- uses: actions/checkout@v2
17-
# Add any build steps here. For example:
18-
- run: pnpm i && pnpm run docs:build
17+
- uses: actions/checkout@v3
18+
19+
- name: Install Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 16
23+
24+
- uses: pnpm/action-setup@v2
25+
name: Install pnpm
26+
id: pnpm-install
27+
with:
28+
version: 7
29+
run_install: false
30+
31+
- name: Get pnpm store directory
32+
id: pnpm-cache
33+
shell: bash
34+
run: |
35+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
36+
37+
- uses: actions/cache@v3
38+
name: Setup pnpm cache
39+
with:
40+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
41+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42+
restore-keys: |
43+
${{ runner.os }}-pnpm-store-
44+
45+
- name: Install dependencies
46+
run: pnpm install
47+
48+
- name: Build docs
49+
run: pnpm run build:docs
50+
1951
- uses: FirebaseExtended/action-hosting-deploy@v0
2052
with:
2153
repoToken: '${{ secrets.GITHUB_TOKEN }}'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vuefire",
33
"version": "3.0.0-alpha.5",
44
"description": "Official Firebase bindings for Vue.js",
5-
"packageManager": "pnpm@7.12.2",
5+
"packageManager": "pnpm@7.14.2",
66
"unpkg": "dist/index.iife.js",
77
"jsdelivr": "dist/index.iife.js",
88
"type": "module",

0 commit comments

Comments
 (0)