Skip to content

🚀 github-deploy 配置更新 #17

🚀 github-deploy 配置更新

🚀 github-deploy 配置更新 #17

Workflow file for this run

name: Build and Publish
on:
pull_request:
branches: main
push:
branches: main
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Node Version Change ➕
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Use Pnpm ➕
uses: pnpm/action-setup@v2
with:
version: 6
run_install: false
- name: Install and Build 🔧
run: |
pnpm i
pnpm run build
- name: Publish 🚀
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}