Update publish-release.yml

This commit is contained in:
Adhiraj Singh
2020-09-02 18:35:56 +05:30
committed by GitHub
parent 4a8932eac9
commit 4f2ad90c65

View File

@@ -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 }}
token: ${{ secrets.NPM_TOKEN }}