diff --git a/.github/workflows/publish beta npm.yml b/.github/workflows/publish beta npm.yml index 65d8b27..8065907 100644 --- a/.github/workflows/publish beta npm.yml +++ b/.github/workflows/publish beta npm.yml @@ -30,11 +30,19 @@ jobs: git config --local user.name "GitHub Action" - name: Change to Package Directory + run: cd packages/${{ github.event.inputs.packagePath }} + + - name: Install Package Dependencies + run: npm install + + - name: Build Package + run: npm run build + + - name: Update Package Version + run: npm version ${{ github.event.inputs.betaVersion }} + + - name: Publish Package run: | - cd packages/${{ github.event.inputs.packagePath }} - npm install - npm run build - npm version ${{ github.event.inputs.betaVersion }} echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc npm publish env: diff --git a/packages/plugin-test/package.json b/packages/plugin-test/package.json index 6054c2f..d1f21e8 100644 --- a/packages/plugin-test/package.json +++ b/packages/plugin-test/package.json @@ -19,9 +19,7 @@ ], "dependencies": { "@alilc/lowcode-utils": "^1.0.0", - "@alilc/lowcode-types": "^1.1.9", - "react": "^16.8.1", - "react-dom": "^16.8.1" + "@alilc/lowcode-types": "^1.1.9" }, "devDependencies": { "@alib/build-scripts": "^0.1.3", @@ -30,7 +28,9 @@ "@types/react": "^16.9.13", "@types/react-dom": "^16.9.4", "build-plugin-fusion": "^0.1.22", - "build-plugin-moment-locales": "^0.1.0" + "build-plugin-moment-locales": "^0.1.0", + "react": "^16.8.1", + "react-dom": "^16.8.1" }, "publishConfig": { "registry": "https://registry.npmjs.org/",