Skip to content

🐳 chore: 增加 cli 的 actions #1

🐳 chore: 增加 cli 的 actions

🐳 chore: 增加 cli 的 actions #1

Workflow file for this run

name: NPM Publish
on:
push:
tags:
- "cli*"
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: "https://registry.npmjs.org"
cache: yarn
- run: yarn install --frozen-lockfile
- name: Build
run: |
node ./scripts/publish.mjs
cd ./packages/async-cli
npm run build
env:
RELEASE_VERSION: ${{ github.ref }}
- name: Publish
run: |
cd ./packages/async-cli
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}