Skip to content

fix: add readme warning #1

fix: add readme warning

fix: add readme warning #1

Workflow file for this run

# .github/workflows/release.yml
name: Release
on:
push:
tags:
- "v*.*.*" # Trigger on version tags like v1.0.0
jobs:
publish:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18" # Or specify another version if necessary
- name: Install pnpm
run: |
npm install -g pnpm
- name: Install dependencies
run: |
pnpm install
- name: Build the package
run: |
pnpm build # If your package has a build step; adjust as needed
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm publish --access public