diff --git a/.github/workflows/pr-diff-size.yml b/.github/workflows/pr-diff-size.yml index 5ebbd61..d8caaee 100644 --- a/.github/workflows/pr-diff-size.yml +++ b/.github/workflows/pr-diff-size.yml @@ -13,6 +13,7 @@ permissions: jobs: analyze: if: github.repository == 'rameel/ramstack.alpinegear.js' + name: Analyze package size changes runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8f397f4..7a6870b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,8 +3,8 @@ name: Publish on: push: tags: - - "[0-9]+.[0-9]+.[0-9]+" - - "[0-9]+.[0-9]+.[0-9]+-[a-z]+.[0-9]+" + - '[0-9]+.[0-9]+.[0-9]+' + - '[0-9]+.[0-9]+.[0-9]+-[a-z]+.[0-9]+' permissions: contents: write @@ -12,15 +12,15 @@ permissions: jobs: publish: if: github.repository == 'rameel/ramstack.alpinegear.js' - name: "Publish Packages" + name: 'Publish Packages' runs-on: ubuntu-latest steps: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "24" - registry-url: "https://registry.npmjs.org" + node-version: '24' + registry-url: 'https://registry.npmjs.org' - name: Checkout uses: actions/checkout@v4 @@ -34,8 +34,8 @@ jobs: - name: Publish packages run: | for dir in dist/*; do - if [ -d "$dir" ]; then - cd "$dir" + if [ -d '$dir' ]; then + cd '$dir' npm publish --access public cd - > /dev/null fi diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 20ae205..f504d5a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,14 +5,14 @@ on: branches: [main] types: [opened, synchronize, reopened, ready_for_review] paths: - - "**.js" - - "**.ts" - - "**.json" + - '**.js' + - '**.ts' + - '**.json' jobs: main: if: ${{ !github.event.pull_request.draft }} - name: "Build & Test" + name: 'Build & Test' runs-on: ubuntu-latest container: image: mcr.microsoft.com/playwright:v1.57.0-noble @@ -22,21 +22,21 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "24" + node-version: '24' - name: Checkout uses: actions/checkout@v4 - name: Install Dependencies - run: npm ci + run: npm ci --include=dev - name: Build (Debug version) run: npm run build:debug - - name: "Test: Alpine.js plugins (playwright)" + - name: 'Test: Alpine.js plugins (playwright)' run: npm run test:playwright env: CI: true - - name: "Test: Alpine.js plugins (vitest)" + - name: 'Test: Alpine.js plugins (vitest)' run: npm run test:vitest diff --git a/rollup.config.js b/rollup.config.js index 8dd8e0e..3e28018 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -79,7 +79,7 @@ function create_configuration({ plugin_name, input, format, optimize }) { [input]: format === "iife" ? `import { listen } from "src/utilities/utils.js"; import __${plugin_name} from "src/plugins/${plugin_name}/index.js"; - listen(document, "alpine:init", () => { Alpine.plugin(__${plugin_name}); });` + listen(document, "alpine:init", () => Alpine.plugin(__${plugin_name}));` : `import plugin from "src/plugins/${plugin_name}/index.js"; export default plugin; export * from "src/plugins/${plugin_name}/index.js";`