Skip to content

Merge pull request #76 from npmstudy/dev #72

Merge pull request #76 from npmstudy/dev

Merge pull request #76 from npmstudy/dev #72

Workflow file for this run

# 整个流程的名字
name: Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
packages: write
defaults:
run:
shell: bash
jobs:
changelog:
name: Changelog PR or Release
if: ${{ github.repository_owner == 'npmstudy' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: "pnpm"
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build Packages
run: pnpm run build
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
version: pnpm run ci:version
publish: pnpm run ci:publish
commit: "[ci] release"
title: "[ci] release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}