Skip to content

Publish tailwind buddy to npm #5

Publish tailwind buddy to npm

Publish tailwind buddy to npm #5

Workflow file for this run

name: Publish tailwind buddy to npm
on:
workflow_dispatch:
jobs:
publish-to-npm:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0
- name: Setup Git
run: |
git config user.name "florent giraud"
git config user.email "[email protected]"
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.12.2"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Release Tailwind buddy
working-directory: packages/core
run: pnpm release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}