Skip to content

Commit

Permalink
Switch to npm-publish GHA script
Browse files Browse the repository at this point in the history
Mostly because, as of #1167, we no longer have a `publish` script.
  • Loading branch information
richvdh committed Dec 12, 2022
1 parent 9a058b9 commit 2a4b83b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release_crypto_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a4b83b

Please sign in to comment.