Skip to content

Merge pull request #45 from monad-crypto/changeset-release/main #25

Merge pull request #45 from monad-crypto/changeset-release/main

Merge pull request #45 from monad-crypto/changeset-release/main #25

Workflow file for this run

name: Release
on:
push:
branches:
- main
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
# This fetches the entire Git history so that Changesets can generate changelogs with the correct commits.
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 24.8
npm-version: 11.6
registry-url: 'https://registry.npmjs.org'
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run build
- name: Create release pull request or publish to npm
id: changesets
uses: changesets/action@v1.7.0
with:
commitMode: github-api
title: "chore: version packages"
commit: "chore: version packages"
version: bun run changeset version
publish: bun run changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}