Skip to content

Commit 120fcd9

Browse files
Neethu-Mohandogi
andauthored
github actions on push tag (#2034)
Co-authored-by: dogi <dogi@users.noreply.github.com>
1 parent a33d88b commit 120fcd9

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: publish on npmjs.org
1+
name: new version
22

33
on:
44
push:
5-
branches:
6-
- 'master'
5+
tags:
6+
- '*.*.*'
77

88
jobs:
99
build:
@@ -28,6 +28,17 @@ jobs:
2828
sed -i -e "s#&lt;#<#g" CHANGELOG.md
2929
sed -i -e "s#&gt;#>#g" CHANGELOG.md
3030
ls -al
31+
- name: release
32+
uses: actions/create-release@v1
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
tag_name: ${{ github.ref }}
37+
release_name: ${{ github.ref }}
38+
body: |
39+
${{ github.event.head_commit.message }}
40+
draft: false
41+
prerelease: false
3142
- name: publish
3243
run: npm publish
3344
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@treehouses/cli",
3-
"version": "1.25.0",
3+
"version": "1.25.1",
44
"remote": "4000",
55
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
66
"main": "cli.sh",

0 commit comments

Comments
 (0)