From 38628d525c9b7366fa1d607de2c0a77aa603e194 Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Mon, 1 Jan 2024 20:34:44 +0800 Subject: [PATCH] fix release pipeline --- .github/workflows/publish.yaml | 2 +- package.json | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index bd719149..145db7e5 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -36,6 +36,6 @@ jobs: REPO_PAT: ${{ secrets.REPO_PAT }} - name: Publish - run: yarn publish -- --token "$NPM_TOKEN" + run: yarn release -- --token "$NPM_TOKEN" env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 8d10590b..e0a30eb4 100644 --- a/package.json +++ b/package.json @@ -16,12 +16,12 @@ "start:production": "npm run start --env=production", "build": "vite build --mode=development", "serve": "vite preview", - "lint": "npx eslint src --fix --ext .ts,.tsx,.vue,.js,.jsx", - "prettier": "npx prettier --write .", - "change": "npx beachball change --no-commit", - "verify": "npx beachball check", - "bump": "npx beachball bump", - "publish": "npx beachball publish --access public", + "lint": "eslint src --fix --ext .ts,.tsx,.vue,.js,.jsx", + "prettier": "prettier --write .", + "change": "beachball change --no-commit", + "verify": "beachball check", + "bump": "beachball bump", + "release": "beachball publish --access public", "prepare": "husky install" }, "dependencies": {