From 120fcd9b8f62ee68cd1ba3764e280e5a7bd0c397 Mon Sep 17 00:00:00 2001 From: Neethu-Mohan Date: Fri, 12 Feb 2021 22:52:42 -0500 Subject: [PATCH] github actions on push tag (#2034) Co-authored-by: dogi --- .github/workflows/{npmjs.yml => newversion.yml} | 17 ++++++++++++++--- package.json | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) rename .github/workflows/{npmjs.yml => newversion.yml} (67%) diff --git a/.github/workflows/npmjs.yml b/.github/workflows/newversion.yml similarity index 67% rename from .github/workflows/npmjs.yml rename to .github/workflows/newversion.yml index 33d7e93e87..74de10a9b2 100644 --- a/.github/workflows/npmjs.yml +++ b/.github/workflows/newversion.yml @@ -1,9 +1,9 @@ -name: publish on npmjs.org +name: new version on: push: - branches: - - 'master' + tags: + - '*.*.*' jobs: build: @@ -28,6 +28,17 @@ jobs: sed -i -e "s#<#<#g" CHANGELOG.md sed -i -e "s#>#>#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: diff --git a/package.json b/package.json index b2a91724d4..5cd7308dc1 100644 --- a/package.json +++ b/package.json @@ -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",