Skip to content

🐎 ci: 修改默认配置 #8

🐎 ci: 修改默认配置

🐎 ci: 修改默认配置 #8

Workflow file for this run

name: NPM Publish
on:
push:
tags:
- "cli-v*"
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/create-theme
npm run build
npm publish
env:
RELEASE_VERSION: ${{ github.ref }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}