From 755fc8a359e9350957a17f8b49e5e3bb69e8feac Mon Sep 17 00:00:00 2001 From: ocavue Date: Sat, 27 Jul 2024 23:29:02 +1000 Subject: [PATCH] ci: try directly write .npmrc --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a7b7df..1893e08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,7 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish to NPM - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: | + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ".npmrc" + npm publish --access public + rm ".npmrc"