Builds project and pushes a new alpha release to NPM
Builds project from specific branch and publishes a new alpha package to NPM.
Uses yarn build:package
command to build the package.
Note: @toptal/davinci-engine
package should be installed in the project.
The list of arguments, that are used in GH Action:
name | type | required | default | description |
---|---|---|---|---|
npm-token |
string | ✅ | NPM token used for publishing. Has to be type Publish | |
branch |
string | ✅ | Name of the branch that will be published | |
root-folder |
string | Root folder of a package to be published | ||
node-version |
string | 20 | Node.js version used. The action is guaranteed to work only with Node.js@20 (default value) |
The list of variables, that are returned by GH Action:
name | type | description |
---|---|---|
versions |
string | List of new versions as output of .version file |
Not specified
- uses: toptal/davinci-github-actions/[email protected]
with:
npm-token: ${{ env.NPM_TOKEN }}
branch: ${{ github.head_ref }}