From f5b3a25192307fc64fd05d094d4b4afa6dd537f3 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 9 Sep 2024 21:18:20 +0200 Subject: [PATCH] ci(js): use action for publish to avoid add-account --- .github/workflows/javascript.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index 12c2f12..bea968c 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -69,7 +69,7 @@ jobs: working-directory: dist/js/publish - run: npx napi prepublish -t . --skip-gh-release working-directory: dist/js/publish - - run: npm publish - working-directory: dist/js/publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.NPM_TOKEN }} + package: dist/js/publish