chore: fix publish.yml
This commit is contained in:
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@@ -155,6 +155,10 @@ jobs:
|
|||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
cache: 'yarn'
|
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
|
- name: Setup git config
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "standardci"
|
git config --global user.name "standardci"
|
||||||
@@ -178,6 +182,7 @@ jobs:
|
|||||||
publish-docker:
|
publish-docker:
|
||||||
name: Publish to Docker Hub
|
name: Publish to Docker Hub
|
||||||
needs: build-docker
|
needs: build-docker
|
||||||
|
if: "${{ contains(github.event.head_commit.message, 'chore(release): publish') == false }}"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"e2e:test": "yarn dlx mocha-headless-chrome --timeout 3600000 -f http://localhost:9001/mocha/test.html",
|
"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",
|
"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\"",
|
"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",
|
"version": "yarn install --no-immutable && git add yarn.lock && yarn changelog:json",
|
||||||
"changelog:json": "node scripts/ChangelogToJson.js && git add .",
|
"changelog:json": "node scripts/ChangelogToJson.js && git add .",
|
||||||
"postversion": "./scripts/push-tags-one-by-one.sh",
|
"postversion": "./scripts/push-tags-one-by-one.sh",
|
||||||
|
|||||||
Reference in New Issue
Block a user