mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update publish-release.yml
This commit is contained in:
12
.github/workflows/publish-release.yml
vendored
12
.github/workflows/publish-release.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user