From 43b1e91a7315660d79ae310c7d27370d2b3cb2e8 Mon Sep 17 00:00:00 2001 From: Christian Sturm Date: Sat, 18 Jan 2025 19:48:10 +0100 Subject: [PATCH 1/3] ci: shorten and rename release script --- .github/workflows/release.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7b46ae..b44a539 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: uses: changesets/action@v1 with: # This expects you to have a script called release which does a build for your packages and calls changeset publish - publish: npm run ci-release + publish: npm run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 26b6520..a401bf5 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "test": "vitest run", "ci": "npm run lint && npm run check-format && npm run test && npm run check-exports && npm run build", "local-release": "changeset version && changeset publish", - "ci-release": "npm run build && changeset publish", + "release": "changeset publish", "prepublishOnly": "npm run ci" }, "devDependencies": { From bf5cd48c4d481c798a78d002167535b28bd99928 Mon Sep 17 00:00:00 2001 From: Christian Sturm Date: Sat, 18 Jan 2025 19:48:53 +0100 Subject: [PATCH 2/3] ci: run release only on this repo/fork --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b44a539..443ee96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,8 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: release: + if: github.repository == 'SturmDerLiebe/MotiData +' name: Release permissions: contents: write From 36815cb00dc503aa48db84fd6b7efd0dd4b721da Mon Sep 17 00:00:00 2001 From: Christian Sturm Date: Sat, 18 Jan 2025 19:53:59 +0100 Subject: [PATCH 3/3] chore: formatting --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 443ee96..c2b1d06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,8 +9,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: release: - if: github.repository == 'SturmDerLiebe/MotiData -' + if: github.repository == 'SturmDerLiebe/MotiData' name: Release permissions: contents: write