Skip to content

Initial release: classless styles + named components on Tailwind them… #1

Initial release: classless styles + named components on Tailwind them…

Initial release: classless styles + named components on Tailwind them… #1

Workflow file for this run

name: Create Release
on:
push:
branches:
- main
paths:
- 'package.json'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get version
id: version
run: |
VERSION=$(node -p "require('./package.json').version")
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Check if tag exists
id: check_tag
run: |
if git ls-remote --tags origin | grep -q "v${{ steps.version.outputs.version }}"; then
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "exists=false" >> $GITHUB_OUTPUT
fi
- name: Verify artifact is up to date
if: steps.check_tag.outputs.exists == 'false'
run: |
bin/build
git diff --exit-code tailwind.firstdraft.css || {
echo "::error::tailwind.firstdraft.css is stale — run bin/build and commit the result before bumping the version"
exit 1
}
- name: Create Release
if: steps.check_tag.outputs.exists == 'false'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.version.outputs.version }}
release_name: v${{ steps.version.outputs.version }}
body: |
## CDN Links
```html
<!-- The official Tailwind CSS browser build (Preflight + utility classes) -->
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.3"></script>
<!-- Tailwind FirstDraft CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/firstdraft/tailwind.firstdraft.css@v${{ steps.version.outputs.version }}/tailwind.firstdraft.css">
```
draft: false
prerelease: false