File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 2828 needs : run-tests
2929 timeout-minutes : 10
3030 runs-on : ubuntu-latest
31- outputs :
32- daisyuiversion : ${{ steps.package-version.outputs.version }}
3331 steps :
3432 - name : Checkout
3533 uses : actions/checkout@v4
8684 needs : deploy-docs
8785 uses : ./.github/workflows/write-release-notes.yml
8886 secrets : inherit
89- with :
90- daisyuiversion : ${{ needs.build-publish.outputs.daisyuiversion }}
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ name: "📝 write release notes"
22
33on :
44 workflow_call :
5- inputs :
6- daisyuiversion :
7- type : string
5+
86jobs :
97 write-release-notes :
108 timeout-minutes : 5
3230 - name : Read package version from package.json
3331 id : package-version
3432 run : |
35- version=${{ inputs.daisyuiversion }}
36- echo " version=$version" >> $GITHUB_OUTPUT
33+ version=$(grep -o '"version": *"[^"]*"' packages/daisyui/package.json | cut -d'"' -f4)
34+ echo version=$version >> $GITHUB_OUTPUT
3735 if [[ $version =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
3836 echo "$version is a stable version"
3937 echo "is-stable=true" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments