Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Create a new tag when package.json is updated with a new version #2755

Merged
merged 4 commits into from
Sep 8, 2023
Merged
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
13 changes: 13 additions & 0 deletions .github/workflows/create-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Create new tag

on:
push:
branches:
- next-release
paths:
- "package.json"
jobs:
create-new-tag:
uses: teamleadercrm/teamleader-github-workflows/.github/workflows/create-tag-node.yaml@v1.13
secrets: inherit
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ $ PORT=3001 yarn start
```

4. Once the pull request has the needed amount of approvals, merge it into the `next-release` branch.
5. Publish a `release` on Github and fill in the following fields:
- **Tag version:** `new.version.number` @ `target: next-release`
- **Release title:** `new.version.number`
- **Description:** add the `changelog items`
5. Github Actions will create a tag + release based on the `version` property in `package.json`
6. In your `console`, pull the `next-release` branch.
7. `Publish` to `npm` using the `npm publish --access=public` command.
8. `Merge` the `next-release` branch into `master` and push to Github
Expand Down