Skip to content

docs(README): fix npm badge #6

docs(README): fix npm badge

docs(README): fix npm badge #6

name: release-please
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: tailwindcss-radix-ui-primitives
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: pnpm/action-setup@v2
with:
version: 8
if: ${{ steps.release.outputs.release_created }}
- 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: 'pnpm'
if: ${{ steps.release.outputs.release_created }}
- name: Install dependencies
run: pnpm install
if: ${{ steps.release.outputs.release_created }}
- name: Build
run: pnpm run build
if: ${{ steps.release.outputs.release_created }}
- name: Test
run: pnpm test
if: ${{ steps.release.outputs.release_created }}
- name: Publish
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}