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 33d7e93e8..74de10a9b 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 b2a91724d..5cd7308dc 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",