diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7b46ae..c2b1d06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: release: + if: github.repository == 'SturmDerLiebe/MotiData' name: Release permissions: contents: write @@ -31,7 +32,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": {