Skip to content

chore: release

chore: release #71

Workflow file for this run

name: Release
on:
push:
branches:
- main
- prerelease
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js Env
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Prepare and Test
run: corepack enable && pnpm i && pnpm test
- name: Create Release Pull Request or Publish
# https://github.com/changesets/action
uses: changesets/action@v1
with:
publish: pnpm release
commit: "chore: release"
title: "chore: release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}