Skip to content

Merge pull request #15 from asepindrak/dev #17

Merge pull request #15 from asepindrak/dev

Merge pull request #15 from asepindrak/dev #17

Workflow file for this run

name: πŸ“¦ Release
on:
push:
branches:
- main
jobs:
release:
name: Generate Changelog & Publish Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: πŸ›ŽοΈ Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🧰 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- name: πŸ“¦ Install dependencies
run: npm install
- name: 🧩 Create version from Changesets
run: npx changeset version
- name: πŸ“ Generate Changelog
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore: update changelog and package versions" || echo "No changes to commit"
git push
- name: πŸš€ Publish GitHub Release
uses: changesets/action@v1
with:
publish: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}