In this lab, we will create our first major release of our application.
So far, we have created and merged several PRs, but how can we actually keep track of released changes? We can use GitHub Releases to create a new release for each version of our application. This will allow us to keep track of the changes that have been made, and also to provide a changelog for our users.
-
Ensure that you are on the
mainbranchgit checkout main
-
Create a new release branch
git checkout -b release/v2.0.0
This repository uses several open-source actions to automate the creation of
releases and changelogs. In order to generate a release, you will need to update
the version number in the package.json file.
-
Open the
package.jsonfile in your editor -
Change the value of the
versionkey to2.0.0 -
Save the file
-
Commit the changes
git add package.json git commit -m "Release version 2.0.0" -
Push the
release/v2.0.0branch to GitHubgit push
-
In your browser, navigate to your repository on GitHub
-
Click on the Pull requests tab
-
Click the New pull request button
-
Click the Compare button, then select your
release/v2.0.0branch -
Click Create pull request
-
Enter a title and description for your PR
-
Click Create pull request
At this point, your PR will not be able to be merged. Someone in the class will need to review it first.
-
Copy the URL of your PR and paste it into the meeting chat
As other people in the class post their PRs, try to review and approve one.
-
Click on the link to a PR in the meeting chat
-
Click on the Files changed tab
-
Click the Review changes button
-
Enter a comment
-
Ensure Approve is selected as the review type
-
Click Submit review
Once your PR has been approved, you can merge it into main.
- Click the Merge pull request button
- Click Confirm merge
- Click Delete branch
-
In your browser, navigate to your repository on GitHub
-
Click the Actions tab
-
Click the Continuous Delivery workflow
-
Click the Release Node.js Project step
-
Review the output of each of the following steps
- Checkout
- Setup GitHub Pages
- Upload Artifact
- Tag
- Create Release
-
In your browser, navigate to your repository on GitHub
-
Click on the v2.0.0 link in the Releases section
-
Review the auto-generated release notes
If you're having trouble with any of the steps, you can ask for help in the meeting chat.



{ "name": "@githubschool/gh-github-intermediate-template", "description": "GitHub Intermediate Training - Template", "version": "2.0.0", // ...