-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # CHANGELOG.md # package.json # packages/docs/src/lib/data/store.js # packages/docs/src/lib/data/youtube.js # packages/docs/src/translation/ro.json # src/components/styled/typography.css # src/docs/.env # src/docs/src/components/TopBanner.svelte # src/docs/src/routes/(docs)/+layout.svelte # src/docs/src/routes/(docs)/+page.svelte # src/docs/src/routes/(docs)/docs/install/+page.svx closes #3558, closes #3556, closes #3551, closes #3547, closes #3544, closes #3542, closes #3531, closes #3530, closes #3529, closes #3527, closes #3524, closes #3520, closes #3519, closes #3518, closes #3517, closes #3508, closes #3482, closes #3473, closes #3472, closes #3468, closes #3453, closes #3451, closes #3443, closes #3440, closes #3433, closes #3432, closes #3430, closes #3427, closes #3421, closes #3418, closes #3417, closes #3394, closes #3391, closes #3389, closes #3383, closes #3382, closes #3381, closes #3375, closes #3360, closes #3348, closes #3346, closes #3332, closes #3328, closes #3325, closes #3322, closes #3320, closes #3318, closes #3316, closes #3315, closes #3313, closes #3312, closes #3308, closes #3294, closes #3287, closes #3285, closes #3281, closes #3280, closes #3276, closes #3272, closes #3250, closes #3245, closes #3242, closes #3232, closes #3231, closes #3224, closes #3222, closes #3218, closes #3216, closes #3215, closes #3203, closes #3202, closes #3188, closes #3176, closes #3170, closes #3169, closes #3267, closes #3166, closes #3160, closes #3157, closes #3155, closes #3153, closes #3148, closes #3141, closes #3128, closes #3117, closes #3116, closes #3078, closes #3071, closes #3060, closes #3053, closes #3040, closes #3027, closes #2988, closes #2987, closes #2979, closes #2975, closes #2965, closes #2950, closes #2867, closes #2865, closes #2862, closes #2850, closes #2833, closes #2802, closes #2800, closes #2796, closes #2735, closes #2734, closes #2725, closes #2689, closes #2684, closes #2678, closes #2669, closes #2667, closes #2653, closes #2643, closes #2637, closes #2626, closes #2619, closes #2615, closes #2605, closes #2597, closes #2571, closes #2570, closes #2564, closes #2502, closes #2442, closes #2415, closes #2413, closes #2410, closes #2375, closes #2296, closes #2223, closes #2172, closes #2137, closes #2115, closes #1929, closes #1922, closes #1831, closes #1744, closes #1732, closes #1672, closes #865, closes #694
- Loading branch information
Showing
747 changed files
with
49,935 additions
and
55,605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,42 +2,22 @@ name: "📘 Deploy docs" | |
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
runtime: | ||
type: choice | ||
description: JS runtime | ||
default: "bun" | ||
options: | ||
- "bun" | ||
- "npm" | ||
daisyuiversion: | ||
type: choice | ||
description: DaisyUI release tag | ||
default: "latest" | ||
options: | ||
- "latest" | ||
- "alpha" | ||
workflow_call: | ||
inputs: | ||
daisyuiversion: | ||
type: string | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "src/docs/**" | ||
- "packages/docs/**" | ||
- "CHANGELOG.md" | ||
|
||
jobs: | ||
deploy-docs: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
env: | ||
runtime: ${{ inputs.runtime || 'bun'}} | ||
LEMONSQUEEZY_API_KEY: ${{ secrets.LEMONSQUEEZY_API_KEY }} | ||
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }} | ||
GH_API_KEY: ${{ secrets.GH_API_KEY }} | ||
daisyuiversion: ${{ inputs.daisyuiversion || 'latest' }} | ||
if: | | ||
github.event_name == 'workflow_dispatch' || | ||
github.event_name == 'workflow_call' || | ||
|
@@ -50,63 +30,27 @@ jobs: | |
fetch-depth: 2 | ||
clean: false | ||
|
||
- name: Setup Node | ||
if: env.runtime == 'npm' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "21.1.0" | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: Setup bun | ||
if: env.runtime == 'bun' | ||
- name: Setup Bun | ||
uses: oven-sh/[email protected] | ||
|
||
- name: Install package dependencies | ||
run: ${{ env.runtime }} install | ||
- name: Install dependencies | ||
run: bun i | ||
|
||
- name: Build package | ||
run: ${{ env.runtime }} run build:skipfullcss | ||
|
||
- name: Install docs dependencies | ||
run: cd src/docs && ${{ env.runtime }} install | ||
|
||
- name: Install daisyUI ${{env.daisyuiversion}} version if production | ||
if: github.repository == 'saadeghi/daisyui' | ||
run: cd src/docs && ${{ env.runtime }} i daisyui@${{env.daisyuiversion}} | ||
|
||
- name: Install daisyUI newest tag if staging | ||
if: github.repository == 'daisyui/daisyui.github.io' | ||
run: | | ||
cd src/docs | ||
if [ "${{env.daisyuiversion}}" = "latest" ]; then | ||
${{ env.runtime }} i daisyui@${{env.daisyuiversion}} | ||
else | ||
${{ env.runtime }} i daisyui@$([[ $(npm view daisyui version) > $(npm view daisyui dist-tags.alpha) ]] && echo "latest" || echo "alpha") | ||
fi | ||
- name: Set daisyUI version in env file if staging | ||
if: github.repository == 'daisyui/daisyui.github.io' | ||
run: | | ||
echo 'VITE_DAISYUI_VERSION=ALPHA' > src/docs/.env | ||
run: bun run build | ||
|
||
- name: Add robots.txt if not main repo | ||
if: github.repository != 'saadeghi/daisyui' | ||
run: | | ||
echo 'User-agent: * | ||
Disallow: /' > src/docs/static/robots.txt | ||
Disallow: /' > packages/docs/static/robots.txt | ||
- name: Build docs | ||
run: | | ||
cd src/docs | ||
if [ -z "${{inputs.daisyuiversion}}" ]; then | ||
${{ env.runtime }} run build | ||
else | ||
VITE_DAISYUI_VERSION=${{inputs.daisyuiversion}} ${{ env.runtime }} run build | ||
fi | ||
run: bun run build:docs | ||
|
||
- name: Deploy docs to github pages | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./src/docs/build | ||
publish_dir: ./packages/docs/build | ||
cname: ${{ secrets.CNAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,6 @@ name: "🎉 Release new version" | |
on: | ||
workflow_dispatch: | ||
inputs: | ||
runtime: | ||
type: choice | ||
description: JS runtime | ||
default: "bun" | ||
options: | ||
- "bun" | ||
- "npm" | ||
release-type: | ||
type: choice | ||
description: Release type | ||
|
@@ -20,18 +13,13 @@ on: | |
branches: | ||
- master | ||
paths: | ||
- "src/**" | ||
- "!src/docs/**" | ||
- "!src/tests/**" | ||
- "!src/experiments/**" | ||
- "packages/daisyui/**" | ||
|
||
jobs: | ||
build-publish: | ||
name: 🔨 Build + 🚀 Publish | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
env: | ||
runtime: ${{ inputs.runtime || 'bun'}} | ||
outputs: | ||
daisyuiversion: ${{ steps.package-version.outputs.version }} | ||
steps: | ||
|
@@ -41,68 +29,37 @@ jobs: | |
fetch-depth: 1 | ||
clean: false | ||
|
||
- name: Setup Node | ||
if: env.runtime == 'npm' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "latest" | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: Setup Bun | ||
if: env.runtime == 'bun' | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- name: Install package dependencies | ||
run: ${{ env.runtime }} install | ||
- name: Install dependencies | ||
run: bun i | ||
|
||
- name: build package | ||
run: ${{ env.runtime }} run build | ||
- name: Build package | ||
run: bun run build | ||
|
||
- name: Run release command | ||
if: github.repository == 'saadeghi/daisyui' | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Pouya Saadeghi" | ||
${{ env.runtime }} run release${{ inputs.release-type }} | ||
bun run release${{ inputs.release-type }} | ||
- name: Read package version from package.json | ||
id: package-version | ||
run: | | ||
version=$(grep -o '"version": *"[^"]*"' package.json | cut -d'"' -f4) | ||
version=$(grep -o '"version": *"[^"]*"' packages/daisyui/package.json | cut -d'"' -f4) | ||
echo version=$version >> $GITHUB_OUTPUT | ||
- name: Update package version in src/docs/.env and commit | ||
if: github.repository == 'saadeghi/daisyui' | ||
id: commit | ||
run: | | ||
echo "VITE_DAISYUI_VERSION=${{ steps.package-version.outputs.version }}" > src/docs/.env | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Pouya Saadeghi" | ||
git add --all | ||
if [ -z "$(git status --porcelain)" ]; then | ||
echo push=false >> $GITHUB_OUTPUT | ||
else | ||
git commit -m "Update src/docs/.env" -a | ||
echo push=true >> $GITHUB_OUTPUT | ||
fi | ||
shell: bash | ||
|
||
- name: Push changes | ||
if: steps.commit.outputs.push == 'true' | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup Node | ||
if: env.runtime != 'npm' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "latest" | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: Publish package to NPM | ||
if: github.repository == 'saadeghi/daisyui' | ||
run: npm publish | ||
run: bun publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
|
@@ -120,7 +77,7 @@ jobs: | |
uses: ./.github/workflows/run-tests.yml | ||
secrets: inherit | ||
with: | ||
filter: " " | ||
filter: "" | ||
|
||
write-release-notes: | ||
name: 📝 Release notes | ||
|
Oops, something went wrong.