github icon indicating copy to clipboard operation
github copied to clipboard

steps.semantic.outputs.release-version & steps.semantic.outputs.new-release-published is empty

Open asutosh-cgi opened this issue 2 years ago • 1 comments

Hi, This my semantic release yml file but its not version and new-release published as true.

`steps: - uses: actions/checkout@v2 - name: create version doc run: | echo "{git-sha: "$(git log -1 --format="%H")",version: "$(git ls-remote --tags --sort='v:refname' | tail -n1 | sed 's/.*///; s/^{}//')"}" > ./public/aavplus/version.json cat ./public//version.json

  - uses: actions/setup-node@v1
    with:
      node-version: 16.x

  - name: validate before release
    run: |
      npx --yes [email protected] ci --no-save
      npm run build
    env:
      NPM_PKG_TOKEN: ${{ secrets.NPM_PKG_TOKEN }}
      CI: true

  - name: semantic release
    run: npx [email protected]
    id: semantic
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

  - name: update version doc
    run: |
      echo "$NEW_CHANGE"
      echo $NEW_CHANGE
      echo ${{ steps.semantic.outputs.new-release-published }}
      echo "{git-sha: \"$(git log -1 --format="%H")\",version: \"$VERSION_TAG\"}" > ./public/aavplus/version.json
      cat ./public//version.json
    env:
      VERSION_TAG: v${{ steps.semantic.outputs.release-version }}. ---> **Empty**
      NEW_CHANGE: ${{ steps.semantic.outputs.new-release-published }}` --> **Empty**

asutosh-cgi avatar Mar 16 '23 06:03 asutosh-cgi

The GitHub Actions step outputs aren't provided by this plugin. This plugin is only for using GitHub's API to create a new Release. If you want step outputs, use https://github.com/felipecrs/semantic-release-export-data#readme

BinToss avatar Jul 18 '25 02:07 BinToss