Skip to main content

How to Publish Actions to GitHub Actions Marketplace

We use this boilerplate and click on 'Use this template', create the repo and clone it locally.

Then we install dependencies using:

npm install

Then change the code in yml/index.js, install all missing dependencies and use ncc to build the bundle as we saw in Creating Custom Actions.

To the action yml, we also need to add the branding section:

outputs:
# ...
runs:
# ...
branding:
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#brandingcolor
color: purple
# https://feathericons.com/
icon: 'alert-octagon'

Then fill out README.md that explains how to use the Action.

Metadata syntax for GitHub Actions