From d4efe0dd792c94cab91229eb32c377d2e362a389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20G=C3=B3mez=20Pinta?= Date: Fri, 4 Oct 2024 17:30:40 +0200 Subject: [PATCH] FInally it works! --- .github/workflows/release.yml | 4 +++- .github/workflows/test-release.yml | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7c2828..6487262 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,13 +27,15 @@ jobs: - name: Build run: pnpm build + - name: Configure npm authentication + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + - name: Publish library run: | sed -i "s#\"version\": \"0.0.0\"#\"version\": \"${TAG_NAME}\"#" ./packages/ui/package.json cd packages/ui pnpm publish --access public --no-git-checks env: - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} TAG_NAME: ${{ github.event.release.tag_name }} - name: Verify npm publish diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 7eb4ba7..8d5abef 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -35,8 +35,6 @@ jobs: run: | cd packages/ui pnpm publish --access public --no-git-checks - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Verify npm publish run: echo "Npm publish completed successfully."