From f1731843d94668fa7d9ba0d6816aa9e9af8b8af1 Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Fri, 6 Feb 2026 16:07:06 -0300 Subject: [PATCH] chore: fix publish.yml --- .github/workflows/publish.yml | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 03a60932b..53e158306 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -155,6 +155,10 @@ jobs: registry-url: 'https://registry.npmjs.org' node-version-file: '.nvmrc' cache: 'yarn' + - name: Upgrade npm (trusted publishing requirement) + run: npm install -g npm@^11.5.1 + - name: Enable Corepack (Yarn) + run: corepack enable - name: Setup git config run: | git config --global user.name "standardci" @@ -178,6 +182,7 @@ jobs: publish-docker: name: Publish to Docker Hub needs: build-docker + if: "${{ contains(github.event.head_commit.message, 'chore(release): publish') == false }}" runs-on: ubuntu-latest steps: - name: Login to Docker Hub diff --git a/package.json b/package.json index 1ada846cc..e9515e1e6 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "e2e:test": "yarn dlx mocha-headless-chrome --timeout 3600000 -f http://localhost:9001/mocha/test.html", "reset": "find . -type dir -name node_modules | xargs rm -rf && rm -rf yarn.lock && yarn install", "release:prod": "lerna version --conventional-commits --yes -m \"chore(release): publish\"", - "publish:prod": "lerna publish from-git --yes --no-verify-access --loglevel verbose", + "publish:prod": "lerna publish from-git --yes --loglevel verbose --registry https://registry.npmjs.org", "version": "yarn install --no-immutable && git add yarn.lock && yarn changelog:json", "changelog:json": "node scripts/ChangelogToJson.js && git add .", "postversion": "./scripts/push-tags-one-by-one.sh",