From 7a4faa69df4c14bf888673ed72be77a546b3e716 Mon Sep 17 00:00:00 2001 From: jiaojiaojiaoCpbr Date: Wed, 21 Feb 2024 17:18:15 +0800 Subject: [PATCH] refactor: extract publish steps --- .github/workflows/npm-publish.yaml | 12 ++++++++++++ packages/package.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml index d24b0cea2e..6bf4874fdc 100644 --- a/.github/workflows/npm-publish.yaml +++ b/.github/workflows/npm-publish.yaml @@ -19,6 +19,18 @@ jobs: - name: Build perseus-core run: npm run build:publish working-directory: ./packages + publish: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: "20.10.0" + cache: "yarn" + registry-url: https://registry.npmjs.org + scope: "@junyiacademy" - name: Publish to npm run: npm publish working-directory: ./packages diff --git a/packages/package.json b/packages/package.json index dc2b6bc489..f9f1c5a7eb 100644 --- a/packages/package.json +++ b/packages/package.json @@ -1,6 +1,6 @@ { "name": "@junyiacademy/perseus-core", - "version": "1.0.16", + "version": "1.0.17", "main": "./dist/index.js", "types": "./dist/index.d.ts", "license": "MIT",