From eb0d6cf51df4e7a7a6f1935f837516ecaf05201a Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 9 Aug 2022 16:21:16 +0200 Subject: [PATCH 1/3] feat: print current time --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 635625a..948a85d 100644 --- a/index.js +++ b/index.js @@ -1 +1,2 @@ -console.log("Hello world!"); \ No newline at end of file +console.log("Hello world!"); +console.log(Date()) From 02efc03b509c61043c2c6990a8d1e6b87c5567bb Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 9 Aug 2022 16:23:21 +0200 Subject: [PATCH 2/3] docs: add readme and comments --- README.md | 45 ++++++--------------------------------------- index.js | 1 + 2 files changed, 7 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 3b5aecb..66d3d2b 100644 --- a/README.md +++ b/README.md @@ -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 - 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) - +## 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 +``` diff --git a/index.js b/index.js index 948a85d..5764310 100644 --- a/index.js +++ b/index.js @@ -1,2 +1,3 @@ +// Prints hello world and current time to the user console.log("Hello world!"); console.log(Date()) From ee31e46a1b37026bbe10b8ec268e6d9d5a9b318a Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 9 Aug 2022 16:24:42 +0200 Subject: [PATCH 3/3] fixup! feat: print current time correct typos --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5764310..ba99050 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,3 @@ // Prints hello world and current time to the user console.log("Hello world!"); -console.log(Date()) +console.log(new Date());