Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Commit cf58404

Browse files
author
Bassem Dghaidi
committed
Replace publish triggering event
1 parent 252637a commit cf58404

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: Publish NPM
1+
name: Publish to npm
22

33
on:
4-
release:
5-
types: [published]
4+
create:
5+
types: [tag]
6+
# release:
7+
# types: [published]
68

79
jobs:
810
publish-npm:
@@ -13,7 +15,9 @@ jobs:
1315
with:
1416
node-version: 10
1517
registry-url: https://registry.npmjs.org/
16-
- run: npm ci
17-
- run: npm publish
18+
run: |
19+
ls -lha
20+
npm ci
21+
echo 'Publishing a new version'
1822
env:
1923
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)