Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Merge pull request #8 from satohshi/changeset-release/main #14

Merge pull request #8 from satohshi/changeset-release/main

Merge pull request #8 from satohshi/changeset-release/main #14

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}