Skip to content

Commit

Permalink
fix: 修复 NPM Publish 工作流
Browse files Browse the repository at this point in the history
  • Loading branch information
huijiewei committed Mar 2, 2023
1 parent 13610db commit 8ac11a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,22 @@ on:
types: [created]

jobs:
build:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install
run: npm install

- name: Build
run: npm run build --workspace packages/react --workspace packages/react-hooks --workspace packages/react-icons --workspace packages/twind --workspace packages/utils

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm publish --workspace packages/react --workspace packages/react-hooks --workspace packages/react-icons --workspace packages/twind --workspace packages/utils
- name: Publish
run: npm publish --workspace packages/react --workspace packages/react-hooks --workspace packages/react-icons --workspace packages/twind --workspace packages/utils
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 1 addition & 1 deletion packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## 安装

```bash
npm i agile-ui/react agile-ui/react-hooks agile-ui/twind
npm i @agile-ui/react @agile-ui/react-hooks @agile-ui/twind
```

## 许可证
Expand Down

1 comment on commit 8ac11a7

@vercel
Copy link

@vercel vercel bot commented on 8ac11a7 Mar 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

agile-ui – ./

agile-ui-git-main-huijiewei.vercel.app
agile-ui.vercel.app
agile-ui-huijiewei.vercel.app

Please sign in to comment.