From 81b25dee841d218d042fb7813b6ce23a04f867ed Mon Sep 17 00:00:00 2001 From: Julian Krispel-Samsel Date: Mon, 18 May 2020 16:49:38 +0100 Subject: [PATCH] uncomment github create release and npm publish action --- .github/workflows/release.yml | 51 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04697b1..e5a8bd6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: name: Create Release jobs: - build: + release: name: Create Release runs-on: ubuntu-latest steps: @@ -28,31 +28,28 @@ jobs: echo "${{ steps.changelog_entry.outputs.version }}" echo "${{ steps.changelog_entry.outputs.description }}" echo "${{ steps.changelog_entry.outputs.unreleased }}" - echo "${{ steps.changelog_entry.outputs.unreleased == 'true' }}" - - name: Create Release if does not exist - run: echo "release this" - if: ${{ steps.changelog_entry.outputs.unreleased == true }} - -# - name: Create Release -# id: create_release -# uses: actions/create-release@v1 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# tag_name: ${{ github.ref }} -# release_name: Release ${{ github.ref }} -# body: ${{ steps.changelog_reader.outputs.log_entry }} # This pulls from the GET CHANGELOG ENTRY step above, referencing it's ID to get its outputs object, which include a `log_entry`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps -# draft: false -# prerelease: false + - name: Create Release + id: create_release + if: ${{ steps.changelog_entry.outputs.unreleased == 'true' }} + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: "v${{ steps.changelog_entry.outputs.version }}" + release_name: Release "v${{ steps.changelog_entry.outputs.version }}" + body: "${{ steps.changelog_entry.outputs.description }}" + draft: false + prerelease: false -# - name: npm publish -# run: | -# npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN -# cd core -# npm publish -# cd .. -# cd react -# npm publish -# env: -# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: npm publish + if: ${{ steps.changelog_entry.outputs.unreleased == 'true' }} + run: | + npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN + cd core + npm publish + cd .. + cd react + npm publish + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}