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

Add publishing instructions and revise version number of CLI #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions PUBLISHING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Publishing a new copy of our fork

Note that for versioning we should retain the original OSS version and add a suffix for any customisations we make.

* If you've just pulled in downstream changes then you'd publish a new suffixed version e.g. if the OSS version is `0.21.4` then we'd use `0.21.4-1`.
* If you've made a new customisation then increment the suffixed version e.g. if the current version is `0.21.4-1` then you'd use `0.21.4-2` next.

To publish this Atlassian fork run the following commands:

1. `atlas packages permission grant -u {{staffid}}` to grant publishing writes within Artifactory
2. `yarn preconstruct build` to generate the dist
3. `cd packages/cli/` to navigate into the CLI workspace
4. `npm version {{version}}` to increment the version
5. `npm publish` to upload to artifactory
6. Discard the git diff generated for `yarn.lock` and `package-lock.json`.
7. Commit the updated version number within `packages/cli/package.json`.
13 changes: 8 additions & 5 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"name": "@manypkg/cli",
"version": "0.21.4",
"name": "@atlassian/manypkg-cli",
"version": "0.21.4-2",
"repository": {
"type": "git",
"url": "https://github.com/Thinkmill/manypkg.git",
"url": "https://github.com/atlassian-forks/manypkg",
"directory": "packages/cli"
},
"license": "MIT",
"main": "dist/manypkg-cli.cjs.js",
"module": "dist/manypkg-cli.esm.js",
"publishConfig": {
"registry": "https://packages.atlassian.com/api/npm/atlassian-npm/"
},
"main": "dist/atlassian-manypkg-cli.cjs.js",
"module": "dist/atlassian-manypkg-cli.esm.js",
"bin": {
"manypkg": "./bin.js"
},
Expand Down
Loading