Skip to content

Merge pull request #2 from auioc/changeset-release/main #8

Merge pull request #2 from auioc/changeset-release/main

Merge pull request #2 from auioc/changeset-release/main #8

Workflow file for this run

name: NPM Publish
on:
push:
branches:
- main
jobs:
changesets:
if: ${{ github.repository_owner == 'auioc'}}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install and Build
run: |
pnpm install
pnpm run build
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
version: pnpm run version
publish: pnpm exec changeset publish
commit: '[CI] Release'
title: '[CI] Release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}