diff --git a/.github/workflows/publish-ctw-kit.yml b/.github/workflows/publish-ctw-kit.yml index 42170a8..9d0a9db 100644 --- a/.github/workflows/publish-ctw-kit.yml +++ b/.github/workflows/publish-ctw-kit.yml @@ -35,8 +35,8 @@ jobs: npm version patch --no-git-tag-version NEW_VERSION=$(node -p "require('./package.json').version") PACKAGE_NAME=$(node -p "require('./package.json').name") - echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT - echo "name=$PACKAGE_NAME" >> $GITHUB_OUTPUT + echo "new_version=${NEW_VERSION}" >> "$GITHUB_OUTPUT" + echo "name=${PACKAGE_NAME}" >> "$GITHUB_OUTPUT" # Check if new version already exists if npm view $PACKAGE_NAME@$NEW_VERSION version >/dev/null 2>&1; then @@ -62,16 +62,22 @@ jobs: exit 1 fi + - name: Setup GitHub CLI + run: | + type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y) + curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ + && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ + && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ + && sudo apt update \ + && sudo apt install gh -y + - name: Create Release - id: create_release - uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} - with: - tag_name: ${{ steps.bump-version.outputs.new_version }} - release_name: Release ${{ steps.bump-version.outputs.new_version }} - draft: false - prerelease: false + run: | + gh release create ${{ steps.bump-version.outputs.new_version }} \ + --title "Release ${{ steps.bump-version.outputs.new_version }}" \ + --generate-notes - uses: oven-sh/setup-bun@v1 with: diff --git a/ctw-kit/bun.lockb b/ctw-kit/bun.lockb index 1ea0fe6..050ceab 100755 Binary files a/ctw-kit/bun.lockb and b/ctw-kit/bun.lockb differ diff --git a/ctw-kit/package.json b/ctw-kit/package.json index 442e2cc..a6f3967 100644 --- a/ctw-kit/package.json +++ b/ctw-kit/package.json @@ -1,6 +1,6 @@ { "name": "ctw-kit", - "version": "1.0.32", + "version": "1.0.33", "description": "Custom components and utilities for Svelte and TailwindCSS (DaisyUI)", "type": "module", "main": "./dist/index.js", @@ -29,7 +29,6 @@ "daisyui": "^4.0.0" }, "dependencies": { - "resend": "^4.0.1", "svelte-french-toast": "^1.2.0", "theme-change": "^2.5.0", "vanilla-tilt": "^1.8.1" diff --git a/ctw-kit/src/lib/components/Carousel/Carousel.svelte b/ctw-kit/src/lib/components/Carousel/Carousel.svelte index 03b2a1a..4abce34 100644 --- a/ctw-kit/src/lib/components/Carousel/Carousel.svelte +++ b/ctw-kit/src/lib/components/Carousel/Carousel.svelte @@ -1,19 +1,19 @@
diff --git a/ctw-kit/svelte.config.js b/ctw-kit/svelte.config.js new file mode 100644 index 0000000..63d2239 --- /dev/null +++ b/ctw-kit/svelte.config.js @@ -0,0 +1,8 @@ +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; + +/** @type {import('@sveltejs/kit').Config} */ +const config = { + preprocess: vitePreprocess() +}; + +export default config; diff --git a/ctw-kit/vite.lib.config.ts b/ctw-kit/vite.lib.config.ts index 6ab81d6..f6e81dc 100644 --- a/ctw-kit/vite.lib.config.ts +++ b/ctw-kit/vite.lib.config.ts @@ -1,5 +1,6 @@ import { defineConfig } from 'vite'; import { svelte } from '@sveltejs/vite-plugin-svelte'; +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; import { fileURLToPath } from 'url'; import { dirname, resolve } from 'path'; import Icons from 'unplugin-icons/vite'; @@ -9,7 +10,9 @@ const __dirname = dirname(__filename); export default defineConfig({ plugins: [ - svelte(), + svelte({ + preprocess: vitePreprocess() + }), Icons({ compiler: 'svelte', autoInstall: true