Skip to content

Commit

Permalink
release only if the last merged commit contained the release label
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov committed Nov 14, 2023
1 parent ecc7af4 commit 45fa890
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- muodov/release-automation

jobs:
release:
Expand All @@ -25,4 +26,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm ci
npx auto release --no-version-prefix --use-version `date +%Y.%m.%d`
if auto label --exists release;
then
npx auto release --no-version-prefix --use-version `date +%Y.%m.%d` -d
fi

0 comments on commit 45fa890

Please sign in to comment.