Skip to content

Commit

Permalink
chore: make tag name dynamic in postpublish message for prereleases (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell authored Jun 15, 2023
1 parent b323695 commit 05f4d6d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: get-npm-version
- name: Get package version from package.json
id: package-version
uses: martinbeentjes/npm-get-version-action@main

- name: Get npm tag from pre.json
id: tag
uses: notiz-dev/github-action-json-property@v0.2.0
with:
path: ".changeset/pre.json"
prop_path: "tag"

- name: Run publish
id: changesets
# Only run publish if we're still in pre mode and the last commit was
Expand Down Expand Up @@ -106,7 +113,7 @@ jobs:
},
{
"type": "mrkdwn",
"text": "*Tag:*\n`alpha`"
"text": "*Tag:*\n`${{steps.tag.outputs.prop}}`"
},
{
"type": "mrkdwn",
Expand Down

0 comments on commit 05f4d6d

Please sign in to comment.