Skip to content

bump version

bump version #3

Workflow file for this run

name: Publish to NPM
on:
push:
tags:
- "v*.*.*" # Matches version tags like v1.0.0, v2.1.3, etc.
jobs:
publish:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the code from the repository
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18" # Use the Node.js version compatible with your package
registry-url: "https://registry.npmjs.org/" # NPM registry URL
# Step 3: Install dependencies and build the package
- name: Install dependencies and build
run: |
npm install
npm run build # Build the package
# Step 4: Publish the package to NPM
- name: Publish to NPM
run: npm publish --access public # Publish the package to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Use the NPM token from GitHub Secrets