This is a mono-repo containing all sorts of github actions that is commonly use by the Paralenz development team
For an example of how to create an action check the ./example
-directory
To learn more about how to write a workflow you can read more in the github actions documentation
If you wish to use one of these composits actions in another composite action you will need to use the full name (eg paralenz/actions/setup-node@master
)
The the publish-release
-action depends on setup-node
. In this case you would need to do - uses: paralenz/actions/setup-node@master
.
If you use ./setup-node
in a workflow in another repository (lets call it MY_REPOSITORY), the workflow in MY_REPOSITORY will look for for ./setup-node/action.yml
-file in the MY_REPOSITORY.
So you might wonder. But, how do I create a new action?
Dont worry. I got you! You can either use the fast way or the cumbersome.
yarn action:new:composite
- Create a new folder with the name of your action.
- Create an action.yml file.
- Enter all the data you need
It is fairly easy to publish a new version.
The workflow is setup so when ever a pull request is merged into the master
-branch it will automaticlly create a new release. For this we will use the version
in package.json
to set the correct tag and release name.
- First we will lint the code using
@paralenz/eslint-config-typescript-react
. - Documentation will be generated based on all
**/action.yml
files in this project. The newly generated documentation will be committed. - We will use the
version
frompackage.json
to create a new tag and a new release with the specific version. The tag and release will be prefixed withv
(v1.0.0) - You do not have to lock your workflow to a specific version of the paralenz/actions, you can use the@master
to use whatever is located in the master branch. - 💰 Profit!