Skip to content

Merge pull request #30 from bytebit8/changeset-release/master #44

Merge pull request #30 from bytebit8/changeset-release/master

Merge pull request #30 from bytebit8/changeset-release/master #44

Workflow file for this run

name: Release
on:
push:
branches:
- master
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write #允许写入
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: npm ci
- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
with:
publish: npm run changeset tag
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_GITHUB_TOKEN }}
- name: Push Changest Tag
if: steps.changesets.outputs.published == 'true'
run: git push --follow-tags
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_GITHUB_TOKEN }}