From 2a4b83b5e6df9407c828508c89c25f78bc58f15e Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 12 Dec 2022 16:17:32 +0000 Subject: [PATCH] Switch to npm-publish GHA script Mostly because, as of #1167, we no longer have a `publish` script. --- .github/workflows/release_crypto_js.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release_crypto_js.yml b/.github/workflows/release_crypto_js.yml index f5f98ce95ba..be60ad3834f 100644 --- a/.github/workflows/release_crypto_js.yml +++ b/.github/workflows/release_crypto_js.yml @@ -48,13 +48,12 @@ jobs: working-directory: ${{ env.PKG_PATH }} run: npm install - - name: Configure NPM auth token - working-directory: ${{ env.PKG_PATH }} - run: npm set "//registry.npmjs.org/:_authToken" "${{ secrets.NPM_TOKEN }}" - - name: Publish the WebAssembly + JavaScript binding (imply building + testing) - working-directory: ${{ env.PKG_PATH }} - run: npm run publish + uses: JS-DevTools/npm-publish@v1 + with: + package: ${{env.PKG_PATH}}/package.json + access: public + token: ${{ secrets.NPM_TOKEN }} - name: Create the Github release uses: softprops/action-gh-release@v1