Skip to content

Commit 2a4b83b

Browse files
committed
Switch to npm-publish GHA script
Mostly because, as of #1167, we no longer have a `publish` script.
1 parent 9a058b9 commit 2a4b83b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/release_crypto_js.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ jobs:
4848
working-directory: ${{ env.PKG_PATH }}
4949
run: npm install
5050

51-
- name: Configure NPM auth token
52-
working-directory: ${{ env.PKG_PATH }}
53-
run: npm set "//registry.npmjs.org/:_authToken" "${{ secrets.NPM_TOKEN }}"
54-
5551
- name: Publish the WebAssembly + JavaScript binding (imply building + testing)
56-
working-directory: ${{ env.PKG_PATH }}
57-
run: npm run publish
52+
uses: JS-DevTools/npm-publish@v1
53+
with:
54+
package: ${{env.PKG_PATH}}/package.json
55+
access: public
56+
token: ${{ secrets.NPM_TOKEN }}
5857

5958
- name: Create the Github release
6059
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)