diff --git a/.github/workflows/changeset-version.yml b/.github/workflows/changeset-version.yml new file mode 100644 index 0000000..c7167e1 --- /dev/null +++ b/.github/workflows/changeset-version.yml @@ -0,0 +1,44 @@ +name: Changeset Version + +on: + push: + branches: + - master + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + version: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: Setup Node.js + uses: actions/setup-node@v5 + with: + cache: pnpm + node-version: 24 + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Create or update version PR + uses: changesets/action@v1 + with: + version: pnpm run version-packages + commit: 'chore(release): version packages' + title: 'chore(release): version packages' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..6361e43 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +# Changelog + +All notable changes to this project will be documented in this file.