Skip to content

Commit

Permalink
chore: add publish actions
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Dec 16, 2023
1 parent 1f9d200 commit 9bacdb2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/publish beta npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions packages/plugin-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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/",
Expand Down

0 comments on commit 9bacdb2

Please sign in to comment.