fix: ci npm publish (#4447)
This commit is contained in:
parent
548dd6c027
commit
6b98f459d4
6
.github/workflows/publish-npm-core.yml
vendored
6
.github/workflows/publish-npm-core.yml
vendored
@ -2,9 +2,9 @@ name: Publish core Package to npmjs
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: ["v[0-9]+.[0-9]+.[0-9]+-core"]
|
tags: ["v[0-9]+.[0-9]+.[0-9]+-core"]
|
||||||
paths: ["core/**"]
|
paths: ["core/**", ".github/workflows/publish-npm-core.yml"]
|
||||||
pull_request:
|
pull_request:
|
||||||
paths: ["core/**"]
|
paths: ["core/**", ".github/workflows/publish-npm-core.yml"]
|
||||||
jobs:
|
jobs:
|
||||||
build-and-publish-plugins:
|
build-and-publish-plugins:
|
||||||
environment: production
|
environment: production
|
||||||
@ -45,7 +45,7 @@ jobs:
|
|||||||
node-version: "20.x"
|
node-version: "20.x"
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
|
||||||
- run: cd core && corepack enable && corepack prepare yarn@4.5.3 --activate && yarn --version && yarn install && yarn build
|
- run: cd core && corepack enable && corepack prepare yarn@4.5.3 --activate && yarn --version && yarn config set -H enableImmutableInstalls false && yarn install && yarn build
|
||||||
|
|
||||||
- run: cd core && yarn publish --access public
|
- run: cd core && yarn publish --access public
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|||||||
6
.github/workflows/publish-npm-joi.yml
vendored
6
.github/workflows/publish-npm-joi.yml
vendored
@ -2,9 +2,9 @@ name: Publish joi Package to npmjs
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: ["v[0-9]+.[0-9]+.[0-9]+-joi"]
|
tags: ["v[0-9]+.[0-9]+.[0-9]+-joi"]
|
||||||
paths: ["joi/**"]
|
paths: ["joi/**", ".github/workflows/publish-npm-joi.yml"]
|
||||||
pull_request:
|
pull_request:
|
||||||
paths: ["joi/**"]
|
paths: ["joi/**", ".github/workflows/publish-npm-joi.yml"]
|
||||||
jobs:
|
jobs:
|
||||||
build-and-publish-plugins:
|
build-and-publish-plugins:
|
||||||
environment: production
|
environment: production
|
||||||
@ -45,7 +45,7 @@ jobs:
|
|||||||
node-version: "20.x"
|
node-version: "20.x"
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
|
||||||
- run: cd joi && corepack enable && corepack prepare yarn@4.5.3 --activate && yarn --version && yarn install && yarn build
|
- run: cd joi && corepack enable && corepack prepare yarn@4.5.3 --activate && yarn --version && yarn config set -H enableImmutableInstalls false && yarn install && yarn build
|
||||||
|
|
||||||
- run: cd joi && yarn publish --access public
|
- run: cd joi && yarn publish --access public
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user