From 201d1c41c7f8f58fdc79a76698b637d91598d7bd Mon Sep 17 00:00:00 2001 From: Nikolay Kost Date: Sun, 9 Mar 2025 14:29:59 +0200 Subject: [PATCH] fix: changesets (#277) fix: publish action --- .github/workflows/publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e2b0299..87cac37 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,6 +40,14 @@ jobs: RELEASE_VER=$(pnpm changeset status --output=./release.json && node scripts/ci/release-version.js | tail -n 1) echo "version=${RELEASE_VER}" >> $GITHUB_OUTPUT + - name: Creating .npmrc + run: | + cat << EOF > "$HOME/.npmrc" + //registry.npmjs.org/:_authToken=$NPM_TOKEN + EOF + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1