We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e81d0 commit 2f017c3Copy full SHA for 2f017c3
.github/workflows/publish.yml
@@ -3,6 +3,8 @@ name: Publish Package to npmjs
3
on:
4
release:
5
types: [published]
6
+ push:
7
+ branches: [ main ]
8
workflow_dispatch:
9
10
permissions:
@@ -26,7 +28,7 @@ jobs:
26
28
node-version: "20.x"
27
29
registry-url: "https://registry.npmjs.org"
30
- run: |
- apt install jq curl -y
31
+ sudo apt install jq curl -y
32
pv=$(jq -r .version package.json)
33
rv=$(curl -s https://registry.npmjs.org/$(jq -r .name package.json) | jq -r '."dist-tags".latest')
34
[ "$pv" = "$rv" ] && exit 0
0 commit comments