From f2af4b87c7728ea5e4a244d92f0d2a33c451c6b5 Mon Sep 17 00:00:00 2001 From: Shahrad Elahi Date: Wed, 8 May 2024 11:23:19 +0330 Subject: [PATCH] fix(ci): run `changeset` frequently on `canary` branch --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 10 ++++------ package.json | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b1f239..e10898f 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: pull_request: concurrency: - group: "${{ github.workflow }}-${{ github.event.number || github.sha }}" + group: '${{ github.workflow }}-${{ github.event.number || github.sha }}' cancel-in-progress: true jobs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 761ff48..3fccf4d 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,15 +1,13 @@ name: Release Package -## -# Invoke: -# gh workflow run "Release Package" -## - on: - workflow_dispatch: + push: + branches: + - canary jobs: release: + if: github.repository == 'shahradelahi/storage-box' name: Build & Publish Release runs-on: ubuntu-latest steps: diff --git a/package.json b/package.json index b6fdf80..8c94fa5 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "type-check": "tsc --noEmit", "format:check": "prettier --check \"**/*.{ts,md}\"", "format": "prettier --write .", - "ci:publish": "npm build && changeset publish", + "ci:publish": "pnpm build && changeset publish", "prepublishOnly": "pnpm test && pnpm run format:check && pnpm run type-check && pnpm build" }, "packageManager": "pnpm@8.15.1",