From 56f1fb84f9298a2a6cef8d67715cb5cd8628b9b8 Mon Sep 17 00:00:00 2001 From: Raul Lugo Date: Thu, 26 Dec 2024 17:43:31 +0100 Subject: [PATCH] fix: use github actions for NPM publish --- .github/workflows/release.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 535a9f4..630fae4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -49,8 +49,7 @@ jobs: # 6. Publish to NPM - name: Publish to NPM - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - cd ${{ env.DIST_FOLDER }} - npm publish --access public + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: './dist'