Add Tailwind Prefix, Improve Build System in Dev, Minor Spacing and C… #142
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created using @tscircuit/plop (npm install -g @tscircuit/plop) | |
name: Publish to npm | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "lib/**" | |
- "package.json" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Configure Git | |
run: | | |
git config --global user.name 'GitHub Actions' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
- run: npm install -g pver | |
- run: bun install --frozen-lockfile | |
- run: bun run build | |
- name: Commit generated files | |
run: | | |
git add -A | |
git diff --staged --quiet || git commit -m "chore: update generated files" | |
- run: pver release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |