-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Description
Today builds are published manually using these steps. We should automate this so, for example, a new tag gets published, similar to what cdt-gdb-vscode does for the marketplaces.
- As a committer, ask @jonahgraham or EF helpdesk to be granted maintainer status on https://www.npmjs.com/package/cdt-gdb-adapter
- Either run in a docker container, or install tools needed. See https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/blob/main/.github/workflows/build-push.yml or https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/tree/main/.devcontainer for guidance on required tools
- Clone (or clean
git clean -dfx) the cdt-gdb-adapter and ensure you are on HEAD of main. - Run
yarnandyarn testto ensure everything builds correctly - Double-check that you have no uncommitted changes and your HEAD is the same as https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/tree/main
- Run
yarn publish. The current version will be something like1.0.8-next, enter1.0.8as the new version (you may need username/password/token here depending on how you have configure security) - Push the HEAD to make a PR, this step is to get ECA approval. e.g.
git push jonah HEAD:1.0.8and then make a PR. Do not merge this PR in GitHub GUI because that will make the tag and commit not line up anymore. (see this pr for a past example) - Push HEAD and tag to origin
git push origin v1.0.8 HEAD - Run
yarn versionto setup next development. The current version will be something like1.0.8, enter1.0.9-nextas the new version. - Create and merge a PR with the commit for the version change. Don't bother pushing the tag, it has little value. (see this pr for a past example)
- Create a PR on cdt-gdb-vscode updating it to the latest cdt-gdb-adapter, including in the changelog what changes the adapter update includes. (see this pr for a past example)
Step 9 is used because in the past we auto-published every commit with a next tag with this Jenkinsfile (when the project was part of eclipse-cdt). We could ditch that step if we don't plan to resume next tag publishing.
Metadata
Metadata
Assignees
Labels
No labels