Skip to content

Commit c1c9a04

Browse files
committed
ci: add push workflow
1 parent 53950c0 commit c1c9a04

File tree

2 files changed

+38
-13
lines changed

2 files changed

+38
-13
lines changed

.github/workflows/on_push.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
name: Release
2-
on:
3-
push:
4-
branches:
5-
- main
1+
name: Push
2+
on: push
63
jobs:
74
release:
8-
name: Release
5+
name: Build & Test
96
runs-on: ubuntu-latest
107
steps:
118
- name: Checkout
@@ -18,10 +15,8 @@ jobs:
1815
with:
1916
node-version: 20
2017
cache: pnpm
21-
- name: Install dependencies
22-
run: pnpm install --frozen-lockfile
23-
- name: Release
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27-
run: pnpm semantic-release
18+
- name: Install, Lint, Test
19+
run: |
20+
pnpm install --frozen-lockfile
21+
pnpm lint
22+
ppnm build

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
- uses: pnpm/action-setup@v4
14+
with:
15+
version: 9
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: pnpm
21+
- name: Install dependencies
22+
run: |
23+
pnpm install --frozen-lockfile
24+
pnpm lint
25+
pbpm build
26+
- name: Release
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
run: pnpm semantic-release

0 commit comments

Comments
 (0)