From f5ed1ea2c91a783829b6df2721d70e1ea09b0b6d Mon Sep 17 00:00:00 2001 From: George Palade Date: Wed, 8 Jul 2026 13:23:13 +0300 Subject: [PATCH 1/2] update publish --- .github/workflows/npm-publish.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 48cabf3..5546a1d 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -15,6 +15,7 @@ jobs: - name: Checkout Repo uses: actions/checkout@v7 with: + ref: main fetch-depth: 0 token: ${{ secrets.PAT }} - name: Set Node.js 24.x @@ -31,10 +32,13 @@ jobs: - name: Upgrade version based on Changeset run: yarn changeset version && yarn install env: - YARN_ENABLE_IMMUTABLE_INSTALLS: false - - uses: stefanzweifel/git-auto-commit-action@v7 - with: - commit_message: Increase packages version + YARN_ENABLE_IMMUTABLE_INSTALLS: false + - name: Whoami + run: | + npm whoami + npm access list packages @totalsoft 2>&1 || true + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish to npm uses: changesets/action@v1 with: @@ -43,3 +47,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - uses: stefanzweifel/git-auto-commit-action@v7 + with: + commit_message: Increase packages version From 88e1253e79373a18eb5e98c940997be5ca153873 Mon Sep 17 00:00:00 2001 From: George Palade Date: Wed, 8 Jul 2026 14:13:13 +0300 Subject: [PATCH 2/2] fix code review --- .github/workflows/npm-publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 5546a1d..5bb54bd 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -15,7 +15,6 @@ jobs: - name: Checkout Repo uses: actions/checkout@v7 with: - ref: main fetch-depth: 0 token: ${{ secrets.PAT }} - name: Set Node.js 24.x @@ -36,9 +35,13 @@ jobs: - name: Whoami run: | npm whoami - npm access list packages @totalsoft 2>&1 || true + npm access list packages @totalsoft @totalsoft/message-bus env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Commit version bump + uses: stefanzweifel/git-auto-commit-action@v7 + with: + commit_message: Increase packages version - name: Publish to npm uses: changesets/action@v1 with: @@ -47,6 +50,3 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - uses: stefanzweifel/git-auto-commit-action@v7 - with: - commit_message: Increase packages version