Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
OMi3 committed Sep 9, 2024
1 parent 1f540e4 commit ffb2770
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: Release

on:
push:
branches: ["main"]
tags: ["v*.*.*"]
branches: [main]
pull_request:
branches: ["main"]
branches: [main]

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand Down Expand Up @@ -36,16 +35,16 @@ jobs:
- run: pnpm install --frozen-lockfile

- name: Create Release Pull Request
uses: changesets/action@v1
if: github.event_name == 'pull_request'
uses: changesets/action@v1
with:
version: pnpm version-packages
version: pnpm changeset version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to npm
uses: changesets/action@v1
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: changesets/action@v1
with:
publish: pnpm release
env:
Expand Down

0 comments on commit ffb2770

Please sign in to comment.