Skip to content

move to @uni-ku/define-page #1

move to @uni-ku/define-page

move to @uni-ku/define-page #1

Workflow file for this run

# name属性用来指定这个工作流的名字
name: Create release and publish NPM
on:
# 当对分支master进行push操作的时候,触发该条工作流
push:
branches: [master]
pull_request:
branches: [master]
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
id-token: write
actions: write
pull-requests: write
statuses: write
contents: write
issues: write
security-events: write
pages: read
environment: npm
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/[email protected]
name: Install pnpm
with:
version: 8
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
commit: 'chore: bump versions'
title: 'chore: bump versions'
publish: pnpm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true