Skip to content

Commit 41e94eb

Browse files
authored
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`
1 parent 3eb8cab commit 41e94eb

File tree

3 files changed

+65
-3
lines changed

3 files changed

+65
-3
lines changed

.github/workflows/ci-stable.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# The only reason this file exists is so that the `badge` in the README of the
2+
# currently published version isn't broken (https://www.npmjs.com/package/tailwindcss).
3+
#
4+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
5+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
6+
7+
name: CI — Stable
8+
9+
on:
10+
push:
11+
branches: [master]
12+
pull_request:
13+
branches: [master, 3.3, 3.4]
14+
15+
permissions:
16+
contents: read
17+
18+
env:
19+
CI: true
20+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
21+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
22+
CACHE_PREFIX: stable
23+
24+
jobs:
25+
build:
26+
runs-on: ubuntu-latest
27+
28+
strategy:
29+
matrix:
30+
node-version: [14, 18]
31+
32+
steps:
33+
- uses: actions/checkout@v3
34+
- name: Use Node.js ${{ matrix.node-version }}
35+
uses: actions/setup-node@v3
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
39+
- name: Use the `stable` engine
40+
run: |
41+
node ./scripts/swap-engines.js
42+
43+
- name: Cache node_modules
44+
uses: actions/cache@v3
45+
with:
46+
path: node_modules
47+
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ env.CACHE_PREFIX }}-node_modules-${{ hashFiles('**/package-lock.json') }}
48+
49+
- name: Install dependencies
50+
run: npm install
51+
52+
- name: Build Tailwind CSS
53+
run: npm run build
54+
55+
- name: Test
56+
run: |
57+
npm run test || \
58+
npm run test || \
59+
npm run test || exit 1
60+
61+
- name: Lint
62+
run: npm run style

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Release
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
67

78
permissions:
89
contents: read

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@
1212
A utility-first CSS framework for rapidly building custom user interfaces.
1313
</p>
1414

15-
1615
<p align="center">
17-
<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>
16+
<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>
1817
<a href="https://www.npmjs.com/package/tailwindcss"><img src="https://img.shields.io/npm/dt/tailwindcss.svg" alt="Total Downloads"></a>
1918
<a href="https://github.com/tailwindcss/tailwindcss/releases"><img src="https://img.shields.io/npm/v/tailwindcss.svg" alt="Latest Release"></a>
2019
<a href="https://github.com/tailwindcss/tailwindcss/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss.svg" alt="License"></a>
2120
</p>
2221

23-
------
22+
---
2423

2524
## Documentation
2625

0 commit comments

Comments
 (0)