diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 14126717..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Release - -on: - push: - tags: - - '*.*.*' - -jobs: - release: - name: Release - runs-on: ubuntu-latest - steps: - - uses: hmarr/debug-action@v2 diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index c7528219..f1fdce66 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -1,4 +1,4 @@ -name: Tag +name: Release on: push: @@ -6,8 +6,8 @@ on: - main jobs: - tag: - name: Tag + release: + name: Release runs-on: ubuntu-latest env: GIT_AUTHOR_NAME: madhead @@ -40,3 +40,9 @@ jobs: - run: git tag --force 'latest' - run: git push --force --tags origin + + - uses: softprops/action-gh-release@v1 + with: + name: ${{ steps.parsedVersion.outputs.major }}.${{ steps.parsedVersion.outputs.minor }}.${{ steps.parsedVersion.outputs.patch }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package-lock.json b/package-lock.json index f118050f..ee079382 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "semver-utils", - "version": "1.3.7", + "version": "1.3.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "semver-utils", - "version": "1.3.7", + "version": "1.3.8", "license": "MIT", "dependencies": { "@actions/core": "^1.2.6", diff --git a/package.json b/package.json index 97710178..d611c1b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "semver-utils", - "version": "1.3.7", + "version": "1.3.8", "private": true, "description": "One-stop shop for working with semantic versions in your workflows", "main": "lib/main.js",