Skip to content

npm publish for github action

Actions
Upload all packages in the folder to the npm repository
v1.0.3
Latest
Star (2)

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.

npm publish for github action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Upload all packages in the folder to the npm repository
v1.0.3
Latest

npm publish for github action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.