Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme updates #45

Merged
merged 3 commits into from
Mar 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
deploy:
name: 'Deploy to Netlify'
steps:
- uses: jsmrcaga/action-netlify-deploy@v1.1.0
- uses: jsmrcaga/action-netlify-deploy@v2.0.0
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.MY_TOKEN_SECRET }}
NETLIFY_DEPLOY_TO_PROD: true
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: jsmrcaga/action-netlify-deploy@master
- uses: jsmrcaga/action-netlify-deploy@v2.0.0
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
Expand Down Expand Up @@ -155,24 +155,16 @@ jobs:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: Netlify preview
state: success
target_url: https://${{ env.BRANCH_NAME }}--my-site.netlify.app
target_url: ${{ env.NETLIFY_PREVIEW_URL }}
```

### Selecting node version

By default, the latest node will be installed before building the application.

Use the `node_version` input to change the desired version. It will be passed to [`nvm install`](https://github.com/nvm-sh/nvm#usage). Valid examples include `16.3.0`, `14`, or `--lts`.

Alternatively, create an `.nvmrc` file with the desired version range in your repository.

### Deploy to Netlify only

In case of already having the deployment ready data - we can easily skip the nvm, install and build part via passing:

```
- name: Deploy to Netlify
uses: jsmrcaga/action-netlify-deploy@master
uses: jsmrcaga/action-netlify-deploy@v2.0.0
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
Expand Down