-
Notifications
You must be signed in to change notification settings - Fork 38
Publishing procedure
Devon Carew edited this page Mar 22, 2023
·
8 revisions
This GitHub Action is published to the GitHub Actions Marketplace here: https://github.com/marketplace/actions/setup-dart-sdk
Follow these steps to publish a new version:
-
Land the changes via PRs
-
Make sure the
CHANGELOG.md
is updated -
Get confirmation that the changes work by having someone use the new version using a commit tag, e.g.:
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
-
Use the GitHub flow for creating a new release with a release tag (e.g.
v1.3.0
):- Navigate to https://github.com/dart-lang/setup-dart/releases
- Click 'Draft a new release'
- Towards the bottom of the page, click the 'Choose a tag' box and then enter a tag (e.g.
v1.3.0
) - In the release notes field below, paste in the relevant text from the changelog
-
Move the
v1
tag to point to the latestv1.x.y
release as per the GitHub guidance:- Find the commit tag:
git log --pretty=oneline
- Move the v1 tag it:
git tag -f v1 [commit tag]
- Validate everything went as planned:
git show v1
- Push the tag to the origin repo:
git push -f origin v1
- Validate the new repo tag:
git ls-remote --tags git@github.com:dart-lang/setup-dart.git v1
- Find the commit tag: