Skip to content

ci(yml): 自动release #2

ci(yml): 自动release

ci(yml): 自动release #2

Workflow file for this run

name: Publish Package To Npm
permissions:
contents: read
packages: write
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: npm i
- run: npm run build
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}