diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 699fc3c..20d89bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release packages +name: Changesets on: push: @@ -7,26 +7,39 @@ on: concurrency: ${{ github.workflow }}-${{ github.ref }} +env: + CI: true + jobs: - release: - name: Release + version: + timeout-minutes: 15 runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write steps: - - name: Checkout Repo - uses: actions/checkout@v2 + - name: checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 - - name: Setup Node.js 22 + - name: setup node uses: actions/setup-node@v2 with: node-version: 22.12 - - name: Install Dependencies + - name: install pnpm + run: npm i pnpm@latest -g + + - name: install Dependencies run: pnpm install - - name: Create Release Pull Request or Publish to npm + - name: create and publish versions id: changesets uses: changesets/action@v1 with: + commit: "chore: update versions" + title: "chore: update versions" publish: pnpm changeset publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}