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

Commit

Permalink
Merge pull request #2755 from teamleadercrm/feature/create-tags
Browse files Browse the repository at this point in the history
Create a new tag when `package.json` is updated with a new version
  • Loading branch information
mrtus committed Sep 8, 2023
2 parents aad4058 + 159aa2c commit daa2a5a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
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

0 comments on commit daa2a5a

Please sign in to comment.