Skip to content

Yarn Package Publish

Actions
Will automatically publish unpublished package versions to the given registry
v0.1.1
LatestPre-release
Star (8)

Tags

 (1)

Action - Yarn Publish

Github Build Status

A Github action that will automatically publish a package to the registry if the version in the package.json is not already published. It can optionally push a tag to git, marking the commit the publish used.

See action.yml for more details.

For a working example on how to set this action up, see my @luvies/evaluator package workflow.

Environment variables

This action will need a number of environment variables depending on what is being done:

  • NODE_AUTH_TOKEN
    • Always needed
    • Used to authenticate the publish to the registry
      • Make sure 2fa is disabled for publishes to the registry
  • GITHUB_TOKEN
    • Only needed if git tagging is enabled
    • Can be given using the following
      • GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Yarn Package Publish 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

Will automatically publish unpublished package versions to the given registry
v0.1.1
LatestPre-release

Tags

 (1)

Yarn Package Publish 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.