Skip to content

Commit

Permalink
fix: separate release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Jan 3, 2021
1 parent 8a2a4ba commit 9258906
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 35 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/create-a-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name: GitHub CI - Create a Release

on:
workflow_dispatch:
push:
branches:
- release-/*
Expand Down Expand Up @@ -34,6 +35,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: 'You can find more details about the changes here: https://github.com/leanupjs/leanup/blob/master/CHANGELOG.md#${{fromJson(steps.lerna.outputs.lernaJson).version}}'
draft: true
prerelease: false
release_name: Release ${{fromJson(steps.lerna.outputs.lernaJson).version}}
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/increment-version.patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ jobs:
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
npx lerna version ${{ env.level }} --no-push --yes
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GIT_PUSH_TOKEN }}
branch: ${{ github.ref }}
- name: Read Lerna
id: lerna
run: |
content=`cat ./lerna.json | tr -d "\n"`
echo "::set-output name=lernaJson::$content"
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: 'You can find more details about the changes here: https://github.com/leanupjs/leanup/blob/master/CHANGELOG.md#${{fromJson(steps.lerna.outputs.lernaJson).version}}'
draft: true
prerelease: false
release_name: Release ${{fromJson(steps.lerna.outputs.lernaJson).version}}
tag_name: ${{fromJson(steps.lerna.outputs.lernaJson).version}}
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GIT_PUSH_TOKEN }}
# branch: ${{ github.ref }}
# - name: Read Lerna
# id: lerna
# run: |
# content=`cat ./lerna.json | tr -d "\n"`
# echo "::set-output name=lernaJson::$content"
# - name: Create Release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# body: 'You can find more details about the changes here: https://github.com/leanupjs/leanup/blob/master/CHANGELOG.md#${{fromJson(steps.lerna.outputs.lernaJson).version}}'
# draft: true
# prerelease: false
# release_name: Release ${{fromJson(steps.lerna.outputs.lernaJson).version}}
# tag_name: ${{fromJson(steps.lerna.outputs.lernaJson).version}}
30 changes: 15 additions & 15 deletions .github/workflows/increment-version.prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ jobs:
with:
github_token: ${{ secrets.GIT_PUSH_TOKEN }}
branch: ${{ github.ref }}
- name: Read Lerna
id: lerna
run: |
content=`cat ./lerna.json | tr -d "\n"`
echo "::set-output name=lernaJson::$content"
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: 'You can find more details about the changes here: https://github.com/leanupjs/leanup/blob/master/CHANGELOG.md#${{fromJson(steps.lerna.outputs.lernaJson).version}}'
draft: true
prerelease: true
release_name: Release ${{fromJson(steps.lerna.outputs.lernaJson).version}}
tag_name: ${{fromJson(steps.lerna.outputs.lernaJson).version}}
# - name: Read Lerna
# id: lerna
# run: |
# content=`cat ./lerna.json | tr -d "\n"`
# echo "::set-output name=lernaJson::$content"
# - name: Create Release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# body: 'You can find more details about the changes here: https://github.com/leanupjs/leanup/blob/master/CHANGELOG.md#${{fromJson(steps.lerna.outputs.lernaJson).version}}'
# draft: true
# prerelease: true
# release_name: Release ${{fromJson(steps.lerna.outputs.lernaJson).version}}
# tag_name: ${{fromJson(steps.lerna.outputs.lernaJson).version}}

0 comments on commit 9258906

Please sign in to comment.