From 7ac1dfc82f94a9a420eabeb3b2d282b9c9a6f0e7 Mon Sep 17 00:00:00 2001 From: akaila-splunk Date: Fri, 7 Oct 2022 14:09:26 +0530 Subject: [PATCH 1/2] Update release.yml --- .github/workflows/release.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b914f6a8..5877cd89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,6 @@ -name: Create Release +name: Doc generation test -on: - release: - types: [published] +on: [push] jobs: publish-npm: @@ -12,22 +10,20 @@ jobs: - uses: actions/setup-node@v2 with: node-version: 14 - registry-url: https://registry.npmjs.org/ - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + # registry-url: https://registry.npmjs.org/ + # - run: npm publish + # env: + # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Package JSON Info uses: myrotvorets/info-from-package-json-action@1.1.0 id: pkgjson - name: Generate docs - run: | - node sdkdo docs - zip -r docs.zip docs-${{ steps.pkgjson.outputs.packageVersion }} + run: node sdkdo docs - name: Upload Artifact uses: actions/upload-artifact@v3 with: - name: apidocs - path: docs.zip + name: JS_SDK_docs + path: docs-${{ steps.pkgjson.outputs.packageVersion }}/ From 0b2722ae68a4a5130db3e2c41500a6a85ac08865 Mon Sep 17 00:00:00 2001 From: akaila-splunk Date: Fri, 7 Oct 2022 15:38:08 +0530 Subject: [PATCH 2/2] Update release.yml --- .github/workflows/release.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5877cd89..4b6a6149 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,8 @@ -name: Doc generation test +name: Create Release -on: [push] +on: + release: + types: [published] jobs: publish-npm: @@ -10,10 +12,10 @@ jobs: - uses: actions/setup-node@v2 with: node-version: 14 - # registry-url: https://registry.npmjs.org/ - # - run: npm publish - # env: - # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + registry-url: https://registry.npmjs.org/ + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Package JSON Info uses: myrotvorets/info-from-package-json-action@1.1.0 @@ -25,5 +27,5 @@ jobs: - name: Upload Artifact uses: actions/upload-artifact@v3 with: - name: JS_SDK_docs + name: js_sdk_docs path: docs-${{ steps.pkgjson.outputs.packageVersion }}/