Skip to content

Commit 4aed9bd

Browse files
committed
simplify the CI script
1 parent 65268ea commit 4aed9bd

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,9 @@ name: CI/CD
33
on:
44
push:
55
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
86

97
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
13-
strategy:
14-
matrix:
15-
node-version: [14.x, 16.x, 18.x]
16-
17-
steps:
18-
- uses: actions/checkout@v3
19-
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v3
21-
with:
22-
node-version: ${{ matrix.node-version }}
23-
- uses: pnpm/action-setup@v2
24-
with:
25-
version: 8
26-
run_install: false
27-
- name: Get pnpm store directory
28-
shell: bash
29-
run: |
30-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
31-
- uses: actions/cache@v3
32-
with:
33-
path: ${{ env.STORE_PATH }}
34-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
35-
restore-keys: |
36-
${{ runner.os }}-pnpm-store-
37-
- run: pnpm install
38-
- run: pnpm run build
39-
- run: pnpm test
40-
- run: pnpm run lint
41-
428
publish:
43-
needs: build
449
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4510
runs-on: ubuntu-latest
4611
steps:
@@ -53,16 +18,6 @@ jobs:
5318
with:
5419
version: 8
5520
run_install: false
56-
- name: Get pnpm store directory
57-
shell: bash
58-
run: |
59-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
60-
- uses: actions/cache@v3
61-
with:
62-
path: ${{ env.STORE_PATH }}
63-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
64-
restore-keys: |
65-
${{ runner.os }}-pnpm-store-
6621
- run: pnpm install
6722
- run: pnpm run build
6823
- run: pnpm publish --no-git-checks

0 commit comments

Comments
 (0)