From 3ca6441f9e8127a04473e106eb0d641ab50e15bd Mon Sep 17 00:00:00 2001 From: Sameeran Kunche Date: Mon, 20 Nov 2023 10:49:00 -0800 Subject: [PATCH 1/3] Add step to log errors --- .github/workflows/publish.yml | 9 +++++++++ package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e7bf436..81094bc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,6 +2,9 @@ name: Publish to NPM on: release: types: [published] + pull_request: # Remove before merge + paths: + - '**/*' jobs: publish: @@ -17,3 +20,9 @@ jobs: with: token: ${{ secrets.NPM_TOKEN }} access: public + - name: Upload npm debug log + if: failure() # This step will run only if the previous steps failed + uses: actions/upload-artifact@v2 + with: + name: npm-debug-logs + path: /home/runner/.npm/_logs/*.log diff --git a/package.json b/package.json index f6f9586..cd5189f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eppo/js-client-sdk-common", - "version": "1.8.0", + "version": "1.8.0-alpha", "description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)", "main": "dist/index.js", "files": [ From be89ee87acdc7c03312935c32c518fdd4db38da3 Mon Sep 17 00:00:00 2001 From: Sameeran Kunche Date: Mon, 20 Nov 2023 11:04:02 -0800 Subject: [PATCH 2/3] Update NPM token --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 81094bc..3c514b5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,7 +18,7 @@ jobs: - run: yarn test - uses: JS-DevTools/npm-publish@v3 with: - token: ${{ secrets.NPM_TOKEN }} + token: ${{ secrets.NPM_CI_TOKEN }} access: public - name: Upload npm debug log if: failure() # This step will run only if the previous steps failed From 4b0365d9865ddd9d14c45c4c7174963265e69780 Mon Sep 17 00:00:00 2001 From: Sameeran Kunche Date: Mon, 20 Nov 2023 11:10:44 -0800 Subject: [PATCH 3/3] Clean up --- .github/workflows/publish.yml | 5 +---- package.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3c514b5..973beb4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,9 +2,6 @@ name: Publish to NPM on: release: types: [published] - pull_request: # Remove before merge - paths: - - '**/*' jobs: publish: @@ -18,7 +15,7 @@ jobs: - run: yarn test - uses: JS-DevTools/npm-publish@v3 with: - token: ${{ secrets.NPM_CI_TOKEN }} + token: ${{ secrets.NPM_TOKEN }} access: public - name: Upload npm debug log if: failure() # This step will run only if the previous steps failed diff --git a/package.json b/package.json index cd5189f..f6f9586 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eppo/js-client-sdk-common", - "version": "1.8.0-alpha", + "version": "1.8.0", "description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)", "main": "dist/index.js", "files": [