Skip to content

Commit

Permalink
Change where to define outputs for jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Dec 18, 2024
1 parent 03e6bbb commit 911bf06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ permissions:
jobs:
release:
runs-on: ubuntu-latest
outputs:
token: ${{ steps.generate-token.outputs.token }}
VERSION_NUMBER: ${{ steps.git-release.outputs.VERSION_NUMBER }}
steps:
- name: Generate a token
id: generate-token
Expand All @@ -37,7 +40,9 @@ jobs:
with:
node-version: ${{ env.NODE }}
- run: yarn
- run: yarn release --ci --verbose
- name: Release through Git
id: git-release
run: yarn release --ci --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
preview-build:
Expand Down
4 changes: 2 additions & 2 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"hooks": {
"after:release": "echo \"VERSION_NUMBER=v${version}\" >> \"$GITHUB_ENV\" "
"after:release": "echo \"VERSION_NUMBER=v${version}\" >> \"$GITHUB_OUTPUT\" "
},
"plugins": {
"@release-it/conventional-changelog": {
Expand Down Expand Up @@ -28,4 +28,4 @@
"preRelease": false,
"draft": false
}
}
}

0 comments on commit 911bf06

Please sign in to comment.