Skip to content

Commit 8f4ed95

Browse files
ci: update workflow triggers and add release steps
1 parent d10b15b commit 8f4ed95

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
branches: [master, dev, next]
55
push:
6-
branches: [master, dev, next]
6+
branches: [dev, next]
77

88
jobs:
99
build:

.github/workflows/release.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
name: Release
22
on:
3-
workflow_run:
4-
workflows: [CI]
5-
types: [completed]
3+
push:
64
branches: [master, next]
75

86
jobs:
97
release:
108
name: Release
11-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
129
runs-on: ubuntu-latest
1310
permissions:
1411
contents: write
@@ -30,6 +27,12 @@ jobs:
3027
registry-url: 'https://registry.npmjs.org'
3128
- name: Install dependencies
3229
run: pnpm install --frozen-lockfile
30+
- name: Build
31+
run: pnpm build
32+
- name: Lint
33+
run: pnpm lint
34+
- name: Test
35+
run: pnpm test
3336
- name: Setup npm auth
3437
env:
3538
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ESLINT }}

0 commit comments

Comments
 (0)