Use JS-DevTools/npm-publish
for package publishing.
New features:
Upload all packages in the folder to the npm repository.
Name | required | Type | Description |
---|---|---|---|
workspaces | No | string|string[] |
Folder Matching Rules Reference |
package | No | string |
The path to the package.json file |
Warning
Parameter configuration weight:
package
>workspaces
workspaces
目录下所有的包文件夹全部进行发布
- name: 📦 publish to NPM
uses: kktjs/npm-publish@main
with:
token: ${{ secrets.NPM_TOKEN }}
workspaces: packages/*
Multiple workspaces
- name: 📦 publish to NPM
uses: kktjs/npm-publish@main
with:
token: ${{ secrets.NPM_TOKEN }}
workspaces: |
packages/*
packa/*
pack
!packb
!pack/a
- name: 📦 publish to NPM
uses: kktjs/npm-publish@main
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./package.json
As always, thanks to our amazing contributors!
Made with github-action.
Licensed under the MIT License.