Skip to content
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

fix(js): allow publishable library to run release command #29775

Conversation

xiongemi
Copy link
Collaborator

@xiongemi xiongemi commented Jan 28, 2025

Current Behavior

  • there is no option fallbackCurrentVersionResolver: 'disk',
  • can't run release for newly created publishable libraries

Expected Behavior

  • move code to add release for publishable libraries into its own file to be reused by other stacks
  • add fallbackCurrentVersionResolver: 'disk', to project's release.version. generatorOptions

Related Issue(s)

Fixes #29723

@xiongemi xiongemi requested review from a team as code owners January 28, 2025 06:27
Copy link

vercel bot commented Jan 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Feb 10, 2025 4:04pm

Copy link

nx-cloud bot commented Jan 28, 2025

View your CI Pipeline Execution ↗ for commit c085917.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 38m 5s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 22s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base= --he... ✅ Succeeded 11s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 9s View ↗
nx documentation ✅ Succeeded 56s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-10 16:45:24 UTC

@xiongemi xiongemi force-pushed the feature/nxc-1383-release-command-does-not-work-for-nxjslib-publishable branch 2 times, most recently from dcfe278 to ce3fe9e Compare January 28, 2025 07:08
@xiongemi xiongemi force-pushed the feature/nxc-1383-release-command-does-not-work-for-nxjslib-publishable branch 4 times, most recently from a71555f to 0762eb6 Compare February 4, 2025 06:05
@xiongemi xiongemi requested a review from a team as a code owner February 4, 2025 06:52
@xiongemi xiongemi force-pushed the feature/nxc-1383-release-command-does-not-work-for-nxjslib-publishable branch from fe594f1 to 0762eb6 Compare February 4, 2025 06:57
Copy link
Collaborator

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly +1'ing Leo's feedback but also a note about needing to support the workspaces + TS project references setup

@xiongemi xiongemi force-pushed the feature/nxc-1383-release-command-does-not-work-for-nxjslib-publishable branch 2 times, most recently from 3d0d1bd to 25b881e Compare February 6, 2025 03:52
@xiongemi xiongemi force-pushed the feature/nxc-1383-release-command-does-not-work-for-nxjslib-publishable branch from 25b881e to 1a874c9 Compare February 7, 2025 05:34
@xiongemi xiongemi requested a review from leosvelperez February 7, 2025 06:29
@xiongemi xiongemi force-pushed the feature/nxc-1383-release-command-does-not-work-for-nxjslib-publishable branch 2 times, most recently from 37f3a20 to 0759294 Compare February 7, 2025 06:41
@xiongemi xiongemi force-pushed the feature/nxc-1383-release-command-does-not-work-for-nxjslib-publishable branch from 0759294 to 506781d Compare February 7, 2025 15:59
@xiongemi xiongemi force-pushed the feature/nxc-1383-release-command-does-not-work-for-nxjslib-publishable branch from 506781d to c085917 Compare February 10, 2025 16:01
@xiongemi xiongemi requested a review from JamesHenry February 10, 2025 16:35
@xiongemi xiongemi merged commit 540aeff into master Feb 10, 2025
12 checks passed
@xiongemi xiongemi deleted the feature/nxc-1383-release-command-does-not-work-for-nxjslib-publishable branch February 10, 2025 19:02
jaysoo pushed a commit that referenced this pull request Feb 12, 2025
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->
- there is no option `fallbackCurrentVersionResolver: 'disk',`
- can't run release for newly created publishable libraries

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
- move code to add release for publishable libraries into its own file
to be reused by other stacks
- add `fallbackCurrentVersionResolver: 'disk',` to project's
release.version. generatorOptions

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #29723
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Release group "__default__" matches no projects. Please ensure all release groups match at least one project
3 participants