Skip to content

Commit

Permalink
github actions on push tag (#2034)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Neethu-Mohan and dogi authored Feb 13, 2021
1 parent a33d88b commit 120fcd9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/npmjs.yml → .github/workflows/newversion.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: publish on npmjs.org
name: new version

on:
push:
branches:
- 'master'
tags:
- '*.*.*'

jobs:
build:
Expand All @@ -28,6 +28,17 @@ jobs:
sed -i -e "s#&lt;#<#g" CHANGELOG.md
sed -i -e "s#&gt;#>#g" CHANGELOG.md
ls -al
- name: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
${{ github.event.head_commit.message }}
draft: false
prerelease: false
- name: publish
run: npm publish
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treehouses/cli",
"version": "1.25.0",
"version": "1.25.1",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down

0 comments on commit 120fcd9

Please sign in to comment.