Skip to content

kktjs/npm-publish

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

NPM Publish

Use JS-DevTools/npm-publish for package publishing.

New features:

Upload all packages in the folder to the npm repository.

Input Parameters

Name required Type Description
workspaces No string|string[] Folder Matching Rules Reference
package No string The path to the package.json file

Other input parameter

Warning

Parameter configuration weight:package > workspaces

Actions Example

Use workspaces input

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

Use package input

- name: 📦 publish to NPM
  uses: kktjs/npm-publish@main
  with:
    token: ${{ secrets.NPM_TOKEN }}
    package: ./package.json

Contributors

As always, thanks to our amazing contributors!

Made with github-action.

License

Licensed under the MIT License.