Skip to content

ci: update command for changelog #81

ci: update command for changelog

ci: update command for changelog #81

Workflow file for this run

name: 🚀 Release
on:
push:
branches:
- main
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: 🚀 Release
strategy:
matrix:
os: [ubuntu-latest]
node-version: [lts/*]
pnpm-version: [latest]
runs-on: ${{ matrix.os }}
steps:
- name: ⬇️ Checkout
id: checkout
uses: actions/checkout@v4
- name: 🥡 Setup PNPM 8
uses: pnpm/action-setup@v3
with:
version: 8
- name: 🟢 Setup Node
uses: actions/setup-node@v4
with:
cache: pnpm
- name: 🧩 Install Dependencies
id: install-dependencies
run: pnpm install
- name: 🏗️ Build
run: pnpm run build
- name: 📋 Changelog
run: pnpm run changelog:conventional
- name: 📣 Create Release Pull Request or Publish to NPM
id: changesets
uses: changesets/action@v1
with:
title: "chore(release): version packages"
version: pnpm packages:version
publish: pnpm packages:publish
commit: "chore(release): version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}