Skip to content

Commit f91f3f3

Browse files
committed
workflows
1 parent 6d2feb8 commit f91f3f3

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/release-new-version.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
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
@@ -86,5 +84,3 @@ jobs:
8684
needs: deploy-docs
8785
uses: ./.github/workflows/write-release-notes.yml
8886
secrets: inherit
89-
with:
90-
daisyuiversion: ${{ needs.build-publish.outputs.daisyuiversion }}

.github/workflows/write-release-notes.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ name: "📝 write release notes"
22

33
on:
44
workflow_call:
5-
inputs:
6-
daisyuiversion:
7-
type: string
5+
86
jobs:
97
write-release-notes:
108
timeout-minutes: 5
@@ -32,8 +30,8 @@ jobs:
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

0 commit comments

Comments
 (0)