♻️ [Changes] 2024 12 07 (#92) #63
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: 🚀 Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Version and release monorepo packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🗳️ Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 🧰 Configure PNPM | |
uses: pnpm/action-setup@v4 | |
- name: 🔧 Setup Node 22.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: pnpm | |
- name: 📦 Install dependencies | |
run: pnpm i | |
- name: 🏗️ Build projects | |
run: pnpm build | |
- name: 📣 Create PR or publish to NPM | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
title: '🦋 [Release] Version packages' | |
commit: '🦋 [Changesets] Prepare for next release' | |
version: pnpm release:version | |
publish: pnpm release:publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |