From 608ae4fc6c80442d8bbda566104c37280b1c5acd Mon Sep 17 00:00:00 2001 From: Arturo Sanchez Date: Thu, 17 Oct 2024 11:56:01 +0200 Subject: [PATCH] chore: fix release script --- .github/workflows/npm-publish.yml | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index beecf64..dcc7800 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -21,9 +21,9 @@ jobs: - name: Publish package run: | if [[ ${{ github.ref }} == *-beta* ]]; then - npm publish --tag beta + npm run publish-package:beta else - npm publish + npm run publish-package fi env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/package.json b/package.json index 4b7e137..70ab7d7 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "test:publish": "npm publish --dry-run", "build:types": "tsc --build", "publish-package": "npm run build && npm publish", + "publish-package:beta": "npm run build && npm publish --tag beta", "typecheck": "tsc --noEmit dist/index.d.ts" }, "repository": {