chore(release): version packages (#509) #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TypeScript Packages - Changesets - NPM Release | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "packages/**" | |
- "!packages/nameguard-python/**" | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
jobs: | |
release: | |
name: Release Packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout NameKit repo | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: "pnpm" | |
- name: Install npm dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build packages | |
run: pnpm turbo run build --filter='./packages/*' | |
- name: Create Release PR or Publish to NPM | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
commit: "chore(release): version packages" | |
title: "chore(release): version packages" | |
publish: pnpm release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |