mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
* bump `postcss-load-config` in the oxide engine * bump `postcss-load-config` in the stable engine * update changelog * Switch to stable * Update Node to v14 * Update to latest dependency versions * Update test helper for new version of `rimraf` Co-Authored-By: Jordan Pittman <jordan@cryptica.me> * Downgrade `lightningcss` to `v1.18.0` Co-Authored-By: Jordan Pittman <jordan@cryptica.me> * Switch back to oxide * Update Github actions from Node 12 to Node 14 * Update oxide dependencies * Update stable dependencies * Update `content-resolution` integration test dependencies * Update `postcss-cli` integration test dependencies * Update `rollup` integration test dependencies * Update `rollup-sass` integration test dependencies * Update `vite` integration test dependencies * Update `webpack-5` integration test dependencies * Update changelog * Remove `color-name` dependency * Replace `quick-lru` dependency with `@alloc/quick-lru` * Replace `quick-lru` dependency with `@alloc/quick-lru` in stable * Fix standalone CLI test --------- Co-authored-by: Jonathan Reinink <jonathan@reinink.ca> Co-authored-by: Jordan Pittman <jordan@cryptica.me>
69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
name: Release — Stable
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
CI: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [14]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
registry-url: 'https://registry.npmjs.org'
|
|
cache: 'npm'
|
|
|
|
- name: Use the `stable` engine
|
|
run: |
|
|
node ./scripts/swap-engines.js
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Build Tailwind CSS
|
|
run: npm run build
|
|
|
|
- name: Test
|
|
run: npm run test
|
|
|
|
- name: Calculate environment variables
|
|
run: |
|
|
echo "RELEASE_CHANNEL=$(node ./scripts/release-channel.js)" >> $GITHUB_ENV
|
|
echo "TAILWINDCSS_VERSION=$(node -e 'console.log(require(`./package.json`).version);')" >> $GITHUB_ENV
|
|
|
|
- name: Publish
|
|
run: npm publish --tag ${{ env.RELEASE_CHANNEL }}
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
- name: Trigger Tailwind Play update
|
|
if: env.RELEASE_CHANNEL == 'latest'
|
|
uses: actions/github-script@v6
|
|
with:
|
|
github-token: ${{ secrets.TAILWIND_PLAY_TOKEN }}
|
|
script: |
|
|
await github.rest.actions.createWorkflowDispatch({
|
|
owner: 'tailwindlabs',
|
|
repo: 'play.tailwindcss.com',
|
|
ref: 'master',
|
|
workflow_id: 'upgrade-tailwindcss.yml',
|
|
inputs: {
|
|
version: '${{ env.TAILWINDCSS_VERSION }}'
|
|
}
|
|
})
|