Skip to content

Conversation

nickgros
Copy link
Contributor

@nickgros nickgros commented Apr 3, 2025

Updated scripts related documentation

Reasons for making this change

Lerna is deprecated and has been replaced by Nx

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests. I've run npx nx run-many --target=build --exclude=@rjsf/docs && npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git update-index --assume-unchanged .npmrc
- run: npx lerna publish from-package --yes
- run: npx nx release publish
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried this locally with --dry-run and it seemed to work, but we won't know for sure until we try to publish a release.

@@ -1,38 +1,57 @@
{
Copy link
Contributor Author

@nickgros nickgros Apr 3, 2025

Choose a reason for hiding this comment

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

Config file was auto-migrated by the Nx upgrade tool

Comment on lines -9 to -10
"publish-repo": "lerna publish",
"changed": "lerna changed",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed these scripts as I don't believe we use them

Comment on lines +34 to +37
"@nx/js": "^20.7.1",
"@swc-node/register": "^1.9.1",
"@swc/core": "^1.5.7",
"@swc/helpers": "^0.5.11",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nx/js (and these swc packages) are required to use nx release version. These were auto-installed when I ran nx add @nx/js


Make sure you use [semver](https://semver.org/) for version numbering when selecting the version.
The `npx lerna version` command will create a new version tag and push it to GitHub.
The `npx nx release version --git-tag` command will create a new version tag and push it to GitHub.
Copy link
Contributor Author

@nickgros nickgros Apr 3, 2025

Choose a reason for hiding this comment

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

This git tag includes the v at the start of the tag name. I think this is different from Lerna, but I don't think it will affect our tag scripts. We may need to tweak this a bit if it doesn't work.

@nickgros nickgros merged commit bf53caa into rjsf-team:rjsf-v6 Apr 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants