Skip to content

Commit

Permalink
Merge pull request #49 from /issues/11
Browse files Browse the repository at this point in the history
Fix #11: Debugging releases
  • Loading branch information
madhead authored Mar 27, 2021
2 parents b597dee + 551916a commit 5e1aa14
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 48 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,42 @@ name: Release

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

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: hmarr/debug-action@v2
- uses: actions/checkout@v2
with:
token: ${{ secrets.RELEASES_GITHUB_TOKEN }}

- run: npm install
- run: npm run all

- uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: dist/**

- run: node -p "'::set-output name=version::' + require('./package.json').version"
id: version

- uses: ./
id: parsedVersion
with:
version: ${{ steps.version.outputs.version }}

- run: git tag --force ${{ steps.parsedVersion.outputs.major }}.${{ steps.parsedVersion.outputs.minor }}.${{ steps.parsedVersion.outputs.patch }}
- run: git tag --force ${{ steps.parsedVersion.outputs.major }}.${{ steps.parsedVersion.outputs.minor }}
- run: git tag --force ${{ steps.parsedVersion.outputs.major }}
- 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 }}
42 changes: 0 additions & 42 deletions .github/workflows/tag.yml

This file was deleted.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 5e1aa14

Please sign in to comment.