chore: fix publish.yml

This commit is contained in:
Antonella Sgarlatta
2026-02-06 16:07:06 -03:00
parent fa84b77a52
commit f1731843d9
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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",