From 57aee97a16e07e3cc92dca8127d6aba0f5d936b2 Mon Sep 17 00:00:00 2001 From: akaila-splunk Date: Mon, 20 Jun 2022 12:17:43 +0530 Subject: [PATCH 1/3] Update release.yml --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87a6710d7..7accf5ffd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,8 @@ -name: Create Release +name: Release docs generation test on: release: - types: [published] + types: [push, pull_request] jobs: publish-npm: @@ -12,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 @@ -24,7 +24,7 @@ jobs: - name: Generate docs run: | node sdkdo docs - zip -r docs.zip docs/${{ steps.pkgjson.outputs.packageVersion }}/refs + zip -r docs.zip docs-${{ steps.pkgjson.outputs.packageVersion }} - name: Upload Artifact uses: actions/upload-artifact@v3 From dde54b9ec9cdad37375cfa38b0e27ecdd1b22aa1 Mon Sep 17 00:00:00 2001 From: akaila-splunk Date: Mon, 20 Jun 2022 12:21:44 +0530 Subject: [PATCH 2/3] Update release.yml --- .github/workflows/release.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7accf5ffd..577a8b0da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,6 @@ name: Release docs generation test -on: - release: - types: [push, pull_request] +on: [push, pull_request] jobs: publish-npm: From 74f408813afbe2a6dbcab83dbb3b95fc16cf1ff2 Mon Sep 17 00:00:00 2001 From: akaila-splunk Date: Mon, 20 Jun 2022 12:44:36 +0530 Subject: [PATCH 3/3] Update release.yml --- .github/workflows/release.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 577a8b0da..b914f6a83 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,8 @@ -name: Release docs generation test +name: Create Release -on: [push, pull_request] +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