Skip to content

Commit

Permalink
Add missing workflow_dispatch (#13302)
Browse files Browse the repository at this point in the history
* 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`
  • Loading branch information
RobinMalfait authored Mar 21, 2024
1 parent 3eb8cab commit 41e94eb
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 3 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/ci-stable.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Release
on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
A utility-first CSS framework for rapidly building custom user interfaces.
</p>


<p align="center">
<a href="https://github.com/tailwindlabs/tailwindcss/actions"><img src="https://img.shields.io/github/actions/workflow/status/tailwindlabs/tailwindcss/ci-stable.yml?branch=master" alt="Build Status"></a>
<a href="https://github.com/tailwindlabs/tailwindcss/actions"><img src="https://img.shields.io/github/actions/workflow/status/tailwindlabs/tailwindcss/ci.yml?branch=master" alt="Build Status"></a>
<a href="https://www.npmjs.com/package/tailwindcss"><img src="https://img.shields.io/npm/dt/tailwindcss.svg" alt="Total Downloads"></a>
<a href="https://github.com/tailwindcss/tailwindcss/releases"><img src="https://img.shields.io/npm/v/tailwindcss.svg" alt="Latest Release"></a>
<a href="https://github.com/tailwindcss/tailwindcss/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss.svg" alt="License"></a>
</p>

------
---

## Documentation

Expand Down

0 comments on commit 41e94eb

Please sign in to comment.