Skip to content

Commit

Permalink
fix(release): Fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Oct 30, 2024
1 parent 423ff09 commit bb21fc2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ tool is used to generate components in your RW project.

[packges/setup](packages/setup) is home to the `setup-rw-shad` command line
tool. This tool is used to setup a new RW project with the `rw-shad` command

Releasing
---------

The packages are versioned independently. To release a new version of a package,
go to the package directory and run `yarn release:patch|minor|major`
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"workspaces": [
"packages/*"
],
"scripts": {
"release:patch": "yarn workspaces foreach --all --parallel run release:patch",
"release:minor": "yarn workspaces foreach --all --parallel run release:minor",
"release:major": "yarn workspaces foreach --all --parallel run release:major"
},
"packageManager": "[email protected]",
"npmClient": "yarn"
}
9 changes: 6 additions & 3 deletions packages/add/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
"copypkgfiles": "yarn cleannpx && cp README.md ./npx/ && cp package.json ./npx/",
"copybin": "cp ./dist/*.js ./npx/dist",
"copyforrelease": "yarn copypkgfiles && yarn copybin",
"release:patch": "yarn build && npm version patch && yarn copyforrelease && cd npx && npm publish && git push --follow-tags",
"release:minor": "yarn build && npm version minor && yarn copyforrelease && cd npx && npm publish && git push --follow-tags",
"release:major": "yarn build && npm version major && yarn copyforrelease && cd npx && npm publish && git push --follow-tags"
"version:patch": "npm version patch --tag-version-prefix=rw-shad/v",
"version:minor": "npm version minor --tag-version-prefix=rw-shad/v",
"version:major": "npm version major --tag-version-prefix=rw-shad/v",
"release:patch": "yarn build && yarn version:patch && yarn copyforrelease && cd npx && npm publish && git push --follow-tags",
"release:minor": "yarn build && yarn version:minor && yarn copyforrelease && cd npx && npm publish && git push --follow-tags",
"release:major": "yarn build && yarn version:major && yarn copyforrelease && cd npx && npm publish && git push --follow-tags"
},
"keywords": [
"redwood",
Expand Down
9 changes: 6 additions & 3 deletions packages/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
"copybin": "cp ./dist/*.js ./npx/dist",
"copytemplates": "cp ./templates/* ./npx/templates/",
"copyforrelease": "yarn copypkgfiles && yarn copybin && yarn copytemplates",
"release:patch": "yarn build && npm version patch && yarn copyforrelease && cd npx && npm publish && git push --follow-tags",
"release:minor": "yarn build && npm version minor && yarn copyforrelease && cd npx && npm publish && git push --follow-tags",
"release:major": "yarn build && npm version major && yarn copyforrelease && cd npx && npm publish && git push --follow-tags"
"version:patch": "npm version patch --tag-version-prefix=setup-rw-shad/v",
"version:minor": "npm version minor --tag-version-prefix=setup-rw-shad/v",
"version:major": "npm version major --tag-version-prefix=setup-rw-shad/v",
"release:patch": "yarn build && yarn version:patch && yarn copyforrelease && cd npx && npm publish && git push --follow-tags",
"release:minor": "yarn build && yarn version:minor && yarn copyforrelease && cd npx && npm publish && git push --follow-tags",
"release:major": "yarn build && yarn version:major && yarn copyforrelease && cd npx && npm publish && git push --follow-tags"
},
"keywords": [
"redwood",
Expand Down

0 comments on commit bb21fc2

Please sign in to comment.