Skip to content

Commit

Permalink
Update publish-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
huseyindeniz authored Dec 22, 2024
1 parent 90986ff commit 20f65f3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
outputs:
version: ${{ step.extract-version.outputs.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: extract package version
id: extract-version
run: |
echo "::set-output name=VERSION::$(cat package.json | jq -r .version)"
VERSION=$(jq -r .version < package.json)
echo "version=VERSION" >> "$GITHUB_OUTPUT"
- name: Build project
run: |
Expand Down Expand Up @@ -48,8 +52,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
tag_name: ${{ needs.build.outputs.VERSION }}
release_name: Release ${{ needs.build.outputs.VERSION }}
tag_name: ${{ needs.build.outputs.version }}
release_name: Release ${{ needs.build.outputs.version }}
body: New release for commit ${{ github.sha }}.
draft: true
prerelease: true
Expand Down

0 comments on commit 20f65f3

Please sign in to comment.