github-tag-action/docs/how-to-publish-new-version.md

1.1 KiB

How to publish a new version of the action

Publish to a distribution branch

Actions are run from GitHub repos. We will create a releases branch and only checkin production modules (core in this case).

Comment out node_modules in .gitignore and create a releases/v1 branch

# comment out in distribution branches
# node_modules/
# lib/
$ git checkout -b releases/v1
$ npm install
$ npm run build
$ npm prune --production
$ git add .
$ git commit -a -m "prod dependencies"
$ git push

Your action is now published! 🚀

See the versioning documentation

Validate

You can now validate the action by referencing the releases/v1 branch

uses: mathieudutour/github-tag-action@releases/v1

See the actions tab for runs of this action! 🚀

Create a tag

After testing you can create a tag to reference the stable and tested action

uses: mathieudutour/github-tag-action@v1