Skip to content
This repository was archived by the owner on May 16, 2022. It is now read-only.

Commit 07b0756

Browse files
committed
Automatically create release on version bump
1 parent 74e412f commit 07b0756

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
checkversion:
10+
name: Release if needed
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: MontyD/package-json-updated-action
14+
name: Version Changed?
15+
id: version-updated
16+
with:
17+
path: package.json
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
- if: steps.version-updated.outputs.has-updated
21+
name: Create Release
22+
id: create_release
23+
uses: actions/create-release@v1
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
tag_name: ${{ github.ref }}
28+
release_name: ${{ github.ref }}
29+
prerelease: ${{ startsWith(steps.version-updated.outputs.current-package-version, '0.') }}

0 commit comments

Comments
 (0)