https://github.com/marco-souza/tag-release
Github Action to generate a release whenever your app version changes
https://github.com/marco-souza/tag-release
bun deno github-actions nodejs release-automation semver tags
Last synced: about 22 hours ago
JSON representation
Github Action to generate a release whenever your app version changes
- Host: GitHub
- URL: https://github.com/marco-souza/tag-release
- Owner: marco-souza
- Created: 2024-09-30T17:22:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-07T22:18:23.000Z (12 months ago)
- Last Synced: 2024-12-22T11:40:48.900Z (10 months ago)
- Topics: bun, deno, github-actions, nodejs, release-automation, semver, tags
- Language: TypeScript
- Homepage:
- Size: 219 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tag-release


**Tag Release** is a GitHub Action that creates **GitHub Releases** whenever your version file changes.
> [!NOTE]
> We only support `json` files with a `version` key on the root level, because it was initially created to support `package.json` and `deno.json`.
>
> You can also create a `version.json`, at the root level of your project, if you are not developing a JavaScript package.
## Usage
For NodeJS:
```yaml
# .github/workflows/release.yml
name: Create Release on version change
on:
push:
paths:
- package.json
jobs:
gh-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create release from tag
uses: marco-souza/tag-release@1.2.0
with:
version-file: package.json
token: ${{ secrets.GITHUB_TOKEN }}
```
For Deno:
```yaml
# .github/workflows/release.yml
name: Create Release on version change
on:
push:
paths:
- deno.json
jobs:
gh-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create release from tag
uses: marco-souza/tag-release@1.2.0
with:
version-file: deno.json
token: ${{ secrets.GITHUB_TOKEN }}
```