From 4f2ad90c651dd6767515b7867ba39425abd46e19 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Wed, 2 Sep 2020 18:35:56 +0530 Subject: [PATCH] Update publish-release.yml --- .github/workflows/publish-release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index e8f78fc..16038af 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -20,10 +20,6 @@ jobs: # run: npm run test Build: runs-on: ubuntu-latest - outputs: - package-name: ${{ steps.packageInfo.outputs.package-name }} - package-version: ${{ steps.packageInfo.outputs.package-version }} - commit-msg: ${{ steps.packageInfo.outputs.commit-msg }} # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Checkout Commit @@ -55,11 +51,11 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: # The name of the tag. This should come from the webhook payload, `github.GITHUB_REF` when a user pushes a new tag - tag_name: v${{ needs.Build.outputs.package-version }} + tag_name: v${{ steps.packageInfo.outputs.package-version }} # The name of the release. For example, `Release v1.0.1` - release_name: v${{needs.Build.outputs.package-version}} + release_name: v${{ steps.packageInfo.outputs.package-version }} # Text describing the contents of the tag. - body: ${{needs.Build.outputs.commit-msg}} + body: ${{steps.packageInfo.outputs.commit-msg}} # `true` to create a draft (unpublished) release, `false` to create a published one. Default: `false` draft: false # `true` to identify the release as a prerelease. `false` to identify the release as a full release. Default: `false` @@ -84,4 +80,4 @@ jobs: - name: NPM Publish uses: JS-DevTools/npm-publish@v1 with: - token: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + token: ${{ secrets.NPM_TOKEN }}