Template for creating Visual Studio Code extension with preconfigured GitHub workflows.
- Click here to use this template to create a new repository
- Wait until the repository preparation is done
- Click here to check the progress of the workflow
- Click here to create a
LICENSE
file - Create 2 new environments:
production
andprerelease
- Click here to create a new environment named
production
andprerelease
respectively - Add an environment secret named
VSCE_PAT
- Paste your personal access token
- Follow this article to create a personal access token
- For permissions, make sure "Marketplace" > "Publish" is checked.
- (Optional) Protect your
production
environment by requiring approvals from collaborators
- Click here to create a new environment named
To publish, you need to push a tag that is corresponding to the version you want to publish. If you want to publish 0.0.1
, push a tag v0.0.1
to your repository.
You can follow our steps:
- Assumptions
- Your current version is
0.0.1-0
(pre-release of0.0.1
) - You want to release
0.0.1
- Your current version is
- Steps to release
git log
and make sure you are on the commit you want to publish as0.0.1
npm version 0.0.1
git push -u origin v0.0.1
, this will trigger publish
- Post-release steps
- It is highly recommended to bump to
0.0.2-0
immediately after0.0.1
is published git checkout -b bump-0.0.2-0
to create a new branch for pull requestnpm version --no-git-tag-version prepatch
, this will bump to0.0.2-0
git commit -a -m "0.0.2-0"
git push -u origin bump-0.0.2-0
gh pr create
, to create a pull request
- It is highly recommended to bump to
Like us? Star us.
Want to make it better? File us an issue.
Don't like something you see? Submit a pull request.