Skip to content

Commit f780e4f

Browse files
committed
fix: github actions
1 parent 123db08 commit f780e4f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/publish.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Publish Package to npmjs
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
if: github.ref_name == 'main'
6+
tags:
7+
- 'v*'
68

79
jobs:
810
publish:
@@ -21,9 +23,9 @@ jobs:
2123
cache: npm
2224
registry-url: 'https://registry.npmjs.org'
2325

24-
- run: npm ci --no-audit
26+
- run: npm ci --force --no-audit
2527

26-
- run: npm build
28+
- run: npm run build
2729

2830
- run: npm publish --provenance --access public
2931
env:

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Publish Release to GitHub
22

33
on:
44
push:
5+
if: github.ref_name == 'main'
56
tags:
67
- 'v*'
78

@@ -21,5 +22,4 @@ jobs:
2122
with:
2223
generateReleaseNotes: 'true'
2324
prerelease: 'false'
24-
reactions: +1,heart,rocket
2525
summaryEnabled: 'false'

0 commit comments

Comments
 (0)