Skip to content

Commit 8de60b1

Browse files
authored
Merge pull request #7 from codeeshop-oc/next
deploy workflow
2 parents 9712814 + 9734f2e commit 8de60b1

File tree

1 file changed

+51
-2
lines changed

1 file changed

+51
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,66 @@ on:
66
- main
77

88
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- uses: pnpm/action-setup@v2
17+
name: Install pnpm
18+
id: pnpm-install
19+
with:
20+
version: 7.26.3
21+
run_install: false
22+
23+
- name: Get pnpm store directory
24+
id: pnpm-cache
25+
shell: bash
26+
run: |
27+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
28+
29+
- uses: actions/setup-node@v3
30+
with:
31+
node-version: 16
32+
cache: pnpm
33+
34+
- name: Install Packages
35+
- run: pnpm i --frozen-lockfile
36+
37+
- name: Lint
38+
run: pnpm run lint
39+
40+
941
deploy:
42+
needs: lint
1043
runs-on: ubuntu-latest
1144
steps:
1245
- uses: actions/checkout@v3
1346
with:
1447
fetch-depth: 0
48+
49+
- uses: pnpm/action-setup@v2
50+
name: Install pnpm
51+
id: pnpm-install
52+
with:
53+
version: 7.26.3
54+
run_install: false
55+
56+
- name: Get pnpm store directory
57+
id: pnpm-cache
58+
shell: bash
59+
run: |
60+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
61+
1562
- uses: actions/setup-node@v3
1663
with:
1764
node-version: 16
18-
cache: yarn
19-
- run: yarn install --frozen-lockfile
65+
cache: pnpm
66+
67+
- name: Install Packages
68+
- run: pnpm i --frozen-lockfile
2069

2170
- name: Build
2271
run: yarn docs:build

0 commit comments

Comments
 (0)