From 41e94ebfabc497802e1908d482d30ad1ad1f99c9 Mon Sep 17 00:00:00 2001
From: Robin Malfait
Date: Thu, 21 Mar 2024 14:04:00 +0100
Subject: [PATCH] Add missing `workflow_dispatch` (#13302)
* add missing `workflow_dispatch`
* re-add `ci-stable.yml`, purely to fix a broken badge on npmjs.com
* update badge in README to point to `ci.yml` instead of `ci-stable.yml`
---
.github/workflows/ci-stable.yml | 62 +++++++++++++++++++++++++++++++++
.github/workflows/release.yml | 1 +
README.md | 5 ++-
3 files changed, 65 insertions(+), 3 deletions(-)
create mode 100644 .github/workflows/ci-stable.yml
diff --git a/.github/workflows/ci-stable.yml b/.github/workflows/ci-stable.yml
new file mode 100644
index 000000000000..33a9a9bdabbd
--- /dev/null
+++ b/.github/workflows/ci-stable.yml
@@ -0,0 +1,62 @@
+# The only reason this file exists is so that the `badge` in the README of the
+# currently published version isn't broken (https://www.npmjs.com/package/tailwindcss).
+#
+# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
+# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
+
+name: CI — Stable
+
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master, 3.3, 3.4]
+
+permissions:
+ contents: read
+
+env:
+ CI: true
+ TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+ TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
+ CACHE_PREFIX: stable
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [14, 18]
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node-version }}
+
+ - name: Use the `stable` engine
+ run: |
+ node ./scripts/swap-engines.js
+
+ - name: Cache node_modules
+ uses: actions/cache@v3
+ with:
+ path: node_modules
+ key: ${{ runner.os }}-${{ matrix.node-version }}-${{ env.CACHE_PREFIX }}-node_modules-${{ hashFiles('**/package-lock.json') }}
+
+ - name: Install dependencies
+ run: npm install
+
+ - name: Build Tailwind CSS
+ run: npm run build
+
+ - name: Test
+ run: |
+ npm run test || \
+ npm run test || \
+ npm run test || exit 1
+
+ - name: Lint
+ run: npm run style
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index dfd770bb1e2f..b764f3b76526 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -3,6 +3,7 @@ name: Release
on:
release:
types: [published]
+ workflow_dispatch:
permissions:
contents: read
diff --git a/README.md b/README.md
index 17663787f071..19388f019a88 100644
--- a/README.md
+++ b/README.md
@@ -12,15 +12,14 @@
A utility-first CSS framework for rapidly building custom user interfaces.
-
-
+
-------
+---
## Documentation