Skip to content

Commit 0b2722a

Browse files
committed
Update release.yml
1 parent 7ac1dfc commit 0b2722a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
name: Doc generation test
1+
name: Create Release
22

3-
on: [push]
3+
on:
4+
release:
5+
types: [published]
46

57
jobs:
68
publish-npm:
@@ -10,10 +12,10 @@ jobs:
1012
- uses: actions/setup-node@v2
1113
with:
1214
node-version: 14
13-
# registry-url: https://registry.npmjs.org/
14-
# - run: npm publish
15-
# env:
16-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
15+
registry-url: https://registry.npmjs.org/
16+
- run: npm publish
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1719

1820
- name: Package JSON Info
1921
uses: myrotvorets/info-from-package-json-action@1.1.0
@@ -25,5 +27,5 @@ jobs:
2527
- name: Upload Artifact
2628
uses: actions/upload-artifact@v3
2729
with:
28-
name: JS_SDK_docs
30+
name: js_sdk_docs
2931
path: docs-${{ steps.pkgjson.outputs.packageVersion }}/

0 commit comments

Comments
 (0)