Skip to content

Commit

Permalink
chore: update npm-publish.yml to trigger on push and pull request events
Browse files Browse the repository at this point in the history
  • Loading branch information
szhshp committed Dec 23, 2024
1 parent 6fc4945 commit f76a779
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
name: Node.js Package

on:
release:
types: [created]
push:
branches:
- main
workflow_dispatch:
pull_request:
branches:
- main


jobs:
build:
Expand All @@ -15,6 +21,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- run: cd core
- run: npm ci
- run: npm test
- run: npm build
Expand Down

0 comments on commit f76a779

Please sign in to comment.