-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e18ed7c
commit d7a2692
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### Node.js Github Composite Actions | ||
|
||
This is a set of composite actions for Node.js projects. It includes the following actions: | ||
- [Build and push Docker image](build-and-push-docker-image) | ||
- [Deployment status report in Github](deployment-status) | ||
- [NPM dependencies install](npm-install) | ||
- [Heroku deployment](heroku-deploy) (deprecated) | ||
- [Heroku review app deployment](heroku-review-app-deploy) (deprecated) | ||
- [Yarn dependencies install](yarn-install) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
### NPM dependencies install composite action | ||
|
||
This composite action installs NPM dependencies for a Node.js project. | ||
It leverages cached NPM dependencies to speed up the process if there are no changes in the dependencies. | ||
|
||
This action will also add a comment in the PR if the Node.js version specified in the `engines` field in the `package.json` file should be updated. | ||
|
||
#### Usage | ||
|
||
```yaml | ||
uses: actions/npm-install@v2 | ||
with: | ||
# Required. NPM token for the Debitoor NPM registry. | ||
debitoor-npm-token: ${{ secrets.DEBITOOR_NPM_TOKEN }} | ||
# Optional. NPM token for the SumUp NPM registry. | ||
# If secret names are different, you can provide them both as below. | ||
sumup-npm-token: ${{ secrets.GH_PACKAGES_TOKEN != '' && secrets.GH_PACKAGES_TOKEN || secrets.READ_PACKAGES_PAT }} | ||
# Optional: SSH private key used to install NPM packages referenced by SSH URLs. | ||
gh-ssh-private-key: ${{ secrets.GH_SSH_PRIVATE_KEY }} | ||
gh-ssh-known-hosts: ${{ secrets.KNOWN_HOSTS }} | ||
# Optional. Set to true to use npm ci instead of npm install. | ||
# Default: true | ||
npm-ci-install: true | ||
# Optional. Additional flags to pass to the npm ci or npm install command. | ||
# Example: --legacy-peer-deps | ||
npm-command-flags: '' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters