Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

feat: auto publish package to npmjs #1

feat: auto publish package to npmjs

feat: auto publish package to npmjs #1

Workflow file for this run

name: Publish to npmjs
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: current
- run: pnpm i --frozen-lockfile
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: current
registry-url: https://registry.npmjs.org/
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}