Skip to content

add outline to dropdown's <summary> tag if it's focused using keyboard #54

add outline to dropdown's <summary> tag if it's focused using keyboard

add outline to dropdown's <summary> tag if it's focused using keyboard #54

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
options:
- ":patch"
- ":minor"
push:
branches:
- master
paths:
- "src/**"
- "!src/docs/**"
- "!src/tests/**"
- "!src/experiments/**"
jobs:
release:
if: github.repository == 'saadeghi/daisyui'
runs-on: ubuntu-latest
env:
runtime: ${{ !github.event.inputs.runtime && 'bun'}}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
if: env.runtime == 'npm'
uses: actions/setup-node@v3
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: build package
run: ${{ env.runtime }} run build
- name: Release
run: |
git config --local user.email "[email protected]"
git config --local user.name "Pouya Saadeghi"
${{ env.runtime }} run release${{ github.event.inputs.release-type }}
- name: get-npm-version
id: package-version
run: |
echo current-version=$(grep -o '"version": *"[^"]*"' package.json | cut -d'"' -f4) >> $GITHUB_OUTPUT
- name: update package version in env
run: echo "VITE_DAISYUI_VERSION=${{ steps.package-version.outputs.current-version }}" > src/docs/.env
- name: Commit files
id: commit
run: |
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 version: ${{ steps.package-version.outputs.current-version }}" -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.js
if: env.runtime != 'npm'
uses: actions/setup-node@v3
with:
node-version: "latest"
registry-url: https://registry.npmjs.org
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}