-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm will not publish unless nx project name matches folder name #65
Comments
Hey! I'm not sure if that is the intended setup for the NX workspaces. I think that usually, the directory name should match the project name. I'll see if I can tackle this in the next release, although it seems like a low-priority issue for now. |
Hi, I am experiencing the same issue with npmPublish:false but seems the names are ok. My .nxrelease.json configuration file is set up as follows: {
"changelog": true,
"npm": true,
"github": false,
"repositoryUrl": "ssh://git@stash.company.com:7999/monorepo.git",
"outputPath" : "${WORKSPACE_DIR}/dist",
"buildTarget": "build",
"branches": ["master"]
} in .npmrc registry set to company npm registry. I run it with I have 2 packages in nx monorepo and the following target "semantic-release": {
"executor": "@theunderscorer/nx-semantic-release:semantic-release"
} However, when I run the release process, the package is not being published to the npm registry. Instead, I see the following log message: [semantic-release] [@semantic-release/npm] › ℹ Skip publishing to npm registry as npmPublish is false I have tried running nx-semantic-release in debug mode, but I didn't find any relevant errors or warnings related to publishing the package. Could you please help me understand why the package is not being published, even though the npm option is set to true in my configuration? Is there any additional configuration or steps that I need to follow to ensure the package is published correctly? Edit: |
I have a similar issue, I'm getting: my .nxrelease.jon
I've searched for this error, but came up with nothing. Do you have any suggestions on what I could look for? |
Hey, thanks for getting back to me!
In response to your comment:
I'm not getting "false", I'm getting "[secure]"
Skip publishing to npm registry as npmPublish is [secure]
I'm building it and then running the semantic-release
sh script: "npx nx run-many --all --target build"
sh 'yarn nx run ui:semantic-release --branches main --npmPulish true'
I'm pretty confused by the results.
logs attached.
Thanks again for your help, I really appreciate it!
Dan
On Thu, Aug 31, 2023 at 1:58 AM Coroliov Oleg ***@***.***> wrote:
@Weetbix <https://github.com/Weetbix>
***@***.***/npm] › ℹ Skip publishing to npm registry as npmPublish is false
means that you need to build your dist first
—
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A33O6UVQP7HAEJUAZRSQZP3XYBG2BANCNFSM6AAAAAAXXAHRQ4>
.
You are receiving this because you commented.Message ID:
***@***.***>
+ docker inspect -f . gcr.io/clover-container-registries/node-web/node18.12
.
+ npm config set registry https://artifactory.corp.clover.com/artifactory/api/npm/npm-local
+ npm config set @clover:registry https://artifactory.corp.clover.com/artifactory/api/npm/npm-local
+ npm config set //artifactory.corp.clover.com/artifactory/api/npm/npm-local:_password ****
+ npm config set //artifactory.corp.clover.com/artifactory/api/npm/npm-local:username ****
+ npm config set //artifactory.corp.clover.com/artifactory/api/npm/npm-local:email ***@***.***
+ npm config set //artifactory.corp.clover.com/artifactory/api/npm/npm-local:always-auth true
+ npm run npm-login
@***@***.*** npm-login
npm-login-noninteractive
info attempt registry request try #1 at 2:33:29 PM
http request PUT https://artifactory.corp.clover.com/artifactory/api/npm/npm-local/-/user/org.couchdb.user:****
http 201 https://artifactory.corp.clover.com/artifactory/api/npm/npm-local/-/user/org.couchdb.user:****
+ npx nx run-many --all --target build
NX Running target build for 2 projects:
- testbed
- ui
nx run ui:build [local cache]
Bundling ui...
index.esm.js 48.538 KB
⚡ Done in 6.01s
nx run testbed:build:production [local cache]
Entrypoint [1mmain[39m[22m 158 KiB = [1m[32mruntime.8146301c839f438b.js[39m[22m 884 bytes [1m[32mmain.6788ec15eeda8277.css[39m[22m 14.8 KiB [1m[32mmain.c260c9300d9f0b6f.js[39m[22m 142 KiB
Entrypoint [1mstyles[39m[22m 992 bytes = [1m[32mruntime.8146301c839f438b.js[39m[22m 884 bytes [1m[32mstyles.ef46db3751d8e999.css[39m[22m 0 bytes [1m[32mstyles.65c6ac89bf0ecde2.js[39m[22m 108 bytes
chunk (runtime: runtime) [1m[32mmain.6788ec15eeda8277.css[39m[22m, [1m[32mmain.c260c9300d9f0b6f.js[39m[22m (main) 157 KiB (javascript) 15.1 KiB (css/mini-extract) [1m[33m[initial][39m[22m [1m[32m[rendered][39m[22m
chunk (runtime: runtime) [1m[32mstyles.ef46db3751d8e999.css[39m[22m, [1m[32mstyles.65c6ac89bf0ecde2.js[39m[22m (styles) 50 bytes (javascript) 0 bytes (css/mini-extract) [1m[33m[initial][39m[22m [1m[32m[rendered][39m[22m
chunk (runtime: runtime) [1m[32mruntime.8146301c839f438b.js[39m[22m (runtime) 2.45 KiB [1m[33m[entry][39m[22m [1m[32m[rendered][39m[22m
webpack compiled [1m[32msuccessfully[39m[22m (b8e51e0eb32f9fa6)
NX Successfully ran target build for 2 projects
Nx read the output from the cache instead of running the command for 2 out of 2 tasks.
+ yarn nx run ui:semantic-release --branches main --npmPulish true
yarn run v1.22.19
$ /home/****/workspace/eb-lib-sprout-design-system_main/node_modules/.bin/nx run ui:semantic-release --branches main --npmPulish true
nx run ui:semantic-release --branches main --npmPulish true
[2:33:33 PM] [semantic-release] › ℹ Running semantic-release version 20.1.0
[2:33:33 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from ***@***.***/changelog"
[2:33:33 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from ***@***.***/npm"
[2:33:33 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from ***@***.***/git"
[2:33:34 PM] [semantic-release] › ✔ Loaded plugin "publish" from ***@***.***/npm"
[2:33:34 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from ***@***.***/npm"
[2:33:35 PM] [semantic-release] › ✔ Run automated release from branch main on repository https://github.corp.clover.com/clover/web-lib-sprout-design-system
[2:33:35 PM] [semantic-release] › ✔ Allowed to push to the Git repository
[2:33:35 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin ***@***.***/changelog"
[2:33:36 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin ***@***.***/changelog"
[2:33:36 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin ***@***.***/npm"
[2:33:36 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin ***@***.***/npm"
[2:33:36 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin ***@***.***/git"
[2:33:36 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin ***@***.***/git"
[2:33:36 PM] [semantic-release] › ℹ Found git tag ui-v1.0.1 associated with version 1.0.1 on branch main
[2:33:36 PM] [semantic-release] › ℹ Found 1 commits since last release
[2:33:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] [[Function: nx-semantic-release]] › ℹ Found following dependencies: "" for project "ui"
[2:33:36 PM] [semantic-release] [[Function: nx-semantic-release]] › ℹ Checking if commit fix: test sr (#28) affects dependencies
[2:33:36 PM] [semantic-release] [[Function: nx-semantic-release]] › ℹ ✔ Commit "fix: test sr (#28)" affects project or its dependencies
[2:33:36 PM] [semantic-release] [[Function: nx-semantic-release]] › ℹ Filtered 1 commits out of 1
[2:33:36 PM] [semantic-release] [[Function: nx-semantic-release]] › ℹ Analyzing commit: fix: test sr (#28)
[2:33:36 PM] [semantic-release] [[Function: nx-semantic-release]] › ℹ The release type for the commit is patch
[2:33:36 PM] [semantic-release] [[Function: nx-semantic-release]] › ℹ Analysis of 1 commits complete: patch release
[2:33:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ The next release version is 1.0.2
[2:33:36 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ℹ Start step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:36 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:37 PM] [semantic-release] › ℹ Start step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:37 PM] [semantic-release] [[Function: nx-semantic-release]] › ℹ Update /home/****/workspace/eb-lib-sprout-design-system_main/packages/ui/CHANGELOG.md
[2:33:37 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:37 PM] [semantic-release] › ℹ Start step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:37 PM] [semantic-release] [[Function: nx-semantic-release]] › ℹ Write version 1.0.2 to package.json in /home/****/workspace/eb-lib-sprout-design-system_main/packages/ui
v1.0.2
[2:33:37 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:37 PM] [semantic-release] › ℹ Start step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:39 PM] [semantic-release] [[Function: nx-semantic-release]] › ℹ Found 2 file(s) to commit
[2:33:41 PM] [semantic-release] [[Function: nx-semantic-release]] › ℹ Prepared Git release: ui-v1.0.2
[2:33:41 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:41 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:41 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:41 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ℹ Start step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:42 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Created tag ui-v1.0.2
[2:33:49 PM] [semantic-release] › ℹ Start step "publish" of plugin ***@***.***/npm"
[2:33:49 PM] [semantic-release] ***@***.***/npm] › ℹ Skip publishing to npm registry as npmPublish is [secure]
[2:33:49 PM] [semantic-release] › ✔ Completed step "publish" of plugin ***@***.***/npm"
[2:33:49 PM] [semantic-release] › ℹ Start step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Completed step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ℹ Start step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Completed step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ℹ Start step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Completed step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ℹ Start step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Completed step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ℹ Start step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Completed step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ℹ Start step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Completed step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ℹ Start step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Completed step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ℹ Start step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Completed step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ℹ Start step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Completed step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ℹ Start step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Completed step "success" of plugin "[Function: nx-semantic-release]"
[2:33:49 PM] [semantic-release] › ✔ Published release 1.0.2 on default channel
NX Successfully ran target semantic-release for project ui
Done in 17.81s.
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
|
In general, you can avoid running this command: You just need to fix your
to
Then the example of my {
"repositoryUrl": "git@github.com:XXX/YYY.git",
"npm": true,
"github": true,
"changelog": false,
"outputPath": "dist/${PROJECT_DIR}",
"buildTarget": "${PROJECT_NAME}:build",
"tagFormat": "${PROJECT_NAME}-v${VERSION}",
"commitMessage": "chore(release): ${nextRelease.gitTag} [skip ci]\n\n${nextRelease.notes}",
"branches": [
"main"
]
} |
Hey, just want to start out by saying the support you offer is amazing and
very much appreciated!
I've updated my .nxreleaserc.json, but npmPublish is still being skipped
with the same messaging.
{
"changelog": true,
"npm": true,
"github": false,
"repositoryUrl": "https://github.xxx.com/clover/web-lib-sprout-design-system
",
"outputPath": "dist/${PROJECT_DIR}",
"buildTarget": "${PROJECT_NAME}:build",
"tagFormat": "${PROJECT_NAME}-v${VERSION}",
"commitMessage": "chore(release): ${nextRelease.gitTag} [skip ci]\\n\\
n${nextRelease.notes}",
"branches": [
"main"
]
}
Logs attached also.
Any suggestions on what I should try next?
Thank you so much for your help!
…On Thu, Aug 31, 2023 at 7:55 AM Coroliov Oleg ***@***.***> wrote:
@daniel-clover <https://github.com/daniel-clover>
In general you can avoid running build like this npx nx run-many --all
--target build
You just need to fix your .nxreleaserc.json
change from
"buildTarget": "build",
to
"buildTarget": "${PROJECT_NAME}:build",
example of my .nxreleaserc.json
{
"repositoryUrl": ***@***.***:XXX/YYY.git",
"npm": true,
"github": true,
"changelog": false,
"outputPath": "dist/${PROJECT_DIR}",
"buildTarget": "${PROJECT_NAME}:build",
"tagFormat": "${PROJECT_NAME}-v${VERSION}",
"commitMessage": "chore(release): ${nextRelease.gitTag} [skip ci]\\n\\n${nextRelease.notes}",
"branches": [
"main"
]
}
—
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A33O6UXOT5ETDSET73ONTTTXYCQVDANCNFSM6AAAAAAXXAHRQ4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@daniel-clover I'm not a developer of this repo :D |
@daniel-clover I didn't see In each "publishConfig": {
"registry": "https://npm.pkg.github.com",
"access": "restricted"
}, |
Ah, I see.
Well, thank you!
Any ideas on what I could try next?
…On Thu, Aug 31, 2023 at 9:04 AM Coroliov Oleg ***@***.***> wrote:
@daniel-clover <https://github.com/daniel-clover> I'm not a developer of
this repo :D
I just ran into the same problem :)
—
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A33O6UXAC3FPJXQMNIIP663XYCYXPANCNFSM6AAAAAAXXAHRQ4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@daniel-clover ps.
to
|
Thanks, Oleg.
Still in the same place in terms of skipping npmPublish, but at least the
code is cleaner!
…On Thu, Aug 31, 2023 at 9:13 AM Coroliov Oleg ***@***.***> wrote:
@daniel-clover <https://github.com/daniel-clover> ps.
fix
"commitMessage": "chore(release): ${nextRelease.gitTag} [skip ci]\\n\\n${nextRelease.notes}",
to
"commitMessage": "chore(release): ${nextRelease.gitTag} [skip ci]\n\n${nextRelease.notes}",
—
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A33O6UXIDYOA6UVFPC2FILLXYCZ25ANCNFSM6AAAAAAXXAHRQ4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@daniel-clover try to copy options from something like this "semantic-release": {
"executor": "@theunderscorer/nx-semantic-release:semantic-release"
"options": {
"github": true,
"changelog": false,
"npm": true,
"buildTarget": "nx-js:build",
"outputPath": "dist/libs/nx/js",
"tagFormat": "${PROJECT_NAME}-v${VERSION}"
}
} change |
I can confirm that this works. Before I had this configuration in the global .nxreleaserc.json:
I updated this to use the specific project.json files.
The error is misleading and an explicit warning/errorcould fix this. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days. |
Hey!
When the project name in
project.json
does not match the folder name, npm publish will not run during release, with this output:Imagine the setup like this:
I think its due to this logic here but I did not confirm: https://github.dev/TheUnderScorer/nx-semantic-release/blob/55df58ca8416acaa61268e82c31c91ff623223fb/packages/nx-semantic-release/src/executors/semantic-release/plugins.ts#L22
Changing the nx project name to match the folder and package name solved the issue, but it would be nice to be able to use a shorthand name sometimes.
The text was updated successfully, but these errors were encountered: