Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
asutosh-cgi opened this issue Mar 16, 2023 · 0 comments

Comments

@asutosh-cgi
Copy link

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 npm@8.5.5 ci --no-save
      npm run build
    env:
      NPM_PKG_TOKEN: ${{ secrets.NPM_PKG_TOKEN }}
      CI: true

  - name: semantic release
    run: npx semantic-release@19.0.5
    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**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant