Will create a release on the main branch of the repository.
Required The secret used to access github
Required The tag used by the release
The name of the release (Default Release {tag}
)
If true, the created release will be marked as a pre-release (Default false
)
Id of the release by GitHub
URL of the release by GitHub (html page)
URL of the release by GitHub (download link to the package)
Get the version from package.json
and create a release with that version.
- name: get-npm-version
uses: jaywcjlove/github-action-package@main
id: package-info
- name: create-release
uses: freight-hub/action-create-release@v1
with:
tag: ${{ steps.package-info.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
Use it in combination with the bump action to create a release from the new version
- name: Bump version from tag
id: tag
uses: freight-hub/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
build_number: ${{ github.run_number }}
fallback_tag: 0.0.1
disable_inform: false
- name: create-release
uses: freight-hub/action-create-release@v1
with:
tag: ${{ steps.tag.outputs.new_version }}
token: ${{ secrets.GITHUB_TOKEN }}
When contributing to this library there are some points to note:
- Please run
yarn format
&yarn build
BEFORE pushing to the repository. - The
dist
folder is checked in (we compile the node_modules into it with@vercel/ncc
)- this is because we need to include the complete script in the repository for github
- Please keep this readme up to date
- After you have comitted, you can tag the repository to 'build' a new version for use in actions