fix: add readme warning #1
Workflow file for this run
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
# .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 |