Skip to content

Commit

Permalink
Merge pull request #70 from PlanBGmbH/chore/69-build-and-publish-work…
Browse files Browse the repository at this point in the history
…flow-does-not-correctly-set-github-release-description

👷 Changed way of setting GitHub release body
  • Loading branch information
BHuber-PlanB authored Feb 9, 2022
2 parents 9a9028e + c11d978 commit b8e8e97
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/Build_Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,8 @@ jobs:
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Get current date
id: get_current_date
run: |
echo "::set-output name=current_date::$(date +'%Y-%m-%d')"
- name: Create GitHub release artifact
run: |
touch CHANGELOG.md
echo "${{ env.changelog }}" >> CHANGELOG.md
wget --quiet --method GET -O npmPackageData.json "http://registry.npmjs.org/@planbgmbh/flinkey-web-components/${{ env.packageVersion }}"
tarballUrl=$( jq -r '.dist.tarball' npmPackageData.json )
wget --quiet --method GET -O npmPackage.tgz "$tarballUrl"
Expand All @@ -141,7 +135,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
artifacts: ${{ env.zipName }}
bodyFile: "CHANGELOG.md"
name: "[${{ env.packageVersion }}] - ${{ steps.get_current_date.outputs.current_date }}"
body: ${{ env.changelog }}
name: ${{ env.packageVersion }}
tag: "v${{ env.packageVersion }}"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b8e8e97

Please sign in to comment.