Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
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
45 changes: 6 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,9 @@
# trainee-release-with-git
# Hello world

This is the trainee course material for the session "Release with Git" which
aims to build upon the course [Version Control With Git](https://github.com/Lundalogik/version-control-with-git).
NodeJS hello world

The slides for this course can be found at <a href="file:///F|/Common/Training/Trainee/Trainee 2023/Trainee 2023 - reunion Q1 (start in Q3 22)/Sessions/2023-01-13 (AC+SE) Releasing software with Git (JOA)">
F:/Common/Training/Trainee/Trainee 2023/Trainee 2023 - reunion Q1 (start in Q3 22)/Sessions/2023-01-13 (AC+SE) Releasing software with Git (JOA)
</a>
## How to run

The exercises of this course touches these topics:

* Conventional Commits
* Semantic Release
* GitHub Actions Workflows
* Automated releases on GitHub
* Working with Pre-Releases
* Fixup commits and interactive rebasing

# Setting up the environment

1. Copy this repository to your personal GitHub account using the [Import repository](https://docs.github.com/en/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-a-repository-with-github-importer) feature on GitHub. _Important: Don't fork the repository and if you choose to make your imported repository private, you may need to add access for your trainer._
2. Go to your created repository on GitHub and then click Settings
3. Navigate to Actions -> General section
4. Select "Allow all actions and reusable workflows" in "Actions permissions" and click Save
5. Select "Read and write permissions" in "Workflow permissions" and click Save
6. Go to the now visible Actions tab in your repository
7. If you are presented the button "Enable GitHub Actions" - click it!
8. Clone the repository created under your personal account

During this course you can use the tools you normally use to work with Git,
but it's recommended to use the Git CLI. Although tools like VSCode offer a GUI
to do commits and rebase operations, it does not currently allow the user to
make fixup commits.

Once you're done, pop over to [the exercises](exercises.md) and let the fun
begin!

# More info / resources

* [Semantic Release: Release Workflows](https://semantic-release.gitbook.io/semantic-release/recipes/release-workflow)
* [Git Rebase: Git In Practice](https://www.thinktecture.com/en/tools/demystifying-git-rebase)
* [Video: VSCode GitLens Interactive Rebase UI](https://www.youtube.com/watch?v=P5p71fguFNI)
```
node index.js
```
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
console.log("Hello world!");
// Prints hello world and current time to the user
console.log("Hello world!");
console.log(new Date());