Skip to content

Commit 2f017c3

Browse files
committed
fix
1 parent c4e81d0 commit 2f017c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Publish Package to npmjs
33
on:
44
release:
55
types: [published]
6+
push:
7+
branches: [ main ]
68
workflow_dispatch:
79

810
permissions:
@@ -26,7 +28,7 @@ jobs:
2628
node-version: "20.x"
2729
registry-url: "https://registry.npmjs.org"
2830
- run: |
29-
apt install jq curl -y
31+
sudo apt install jq curl -y
3032
pv=$(jq -r .version package.json)
3133
rv=$(curl -s https://registry.npmjs.org/$(jq -r .name package.json) | jq -r '."dist-tags".latest')
3234
[ "$pv" = "$rv" ] && exit 0

0 commit comments

Comments
 (0)