我正在为我的项目使用 github 操作并发布我正在使用语义发布,一旦语义发布发布版本是否可以将该版本转发到下一步?
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- run: |
git pull
npm install
- name: semanticRelease
run: npx semantic-release -t \${version}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update-release:
runs-on: ubuntu-latest
steps:
- name: Update release
uses: tubone24/update_release@v1.2.0
env:
GITHUB_TOKEN: ${{ github.token }}
TAG_NAME: # I need the tag released by semantic release in the prev step here. If no release is done I need to skip this step.
with:
is_append_body: true
body: "Update something"