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

chore: node 16 -> 20 #21

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
- run: npm ci
- run: npm run lint
- run: npm test
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dynamic Preview Environments using Humanitec

This GitHub action allows you to dynamically create and deleted preview environments using the Humanitec Platform Orchestrator.
This GitHub Action allows you to dynamically create and deleted preview environments using the Humanitec Platform Orchestrator.

## Inputs

Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: humanitec/preview-envs-action@v1
- uses: humanitec/preview-envs-action@v2
with:
humanitec-token: ${{ secrets.HUMANITEC_TOKEN }}
humanitec-org: my-org
Expand All @@ -69,7 +69,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: humanitec/preview-envs-action@v1
- uses: humanitec/preview-envs-action@v2
with:
humanitec-token: ${{ secrets.HUMANITEC_TOKEN }}
humanitec-org: my-org
Expand All @@ -79,10 +79,10 @@ jobs:
```
### Notify Humanitec

Add the following snipped after your CI step notifying Humanitec about the newly pushed image (commonly the build-push-to-humanitec step):
Add the following snipped after your CI step to notify Humanitec about the newly pushed image (commonly the build-push-to-humanitec step):

```yaml
- uses: humanitec/preview-envs-action@v1
- uses: humanitec/preview-envs-action@v2
with:
humanitec-org: my-org
humanitec-app: my-app
Expand All @@ -98,10 +98,10 @@ All actions above return the output parameter `environment-url`. If you just wan
```yaml
- name: Get Preview Environment
id: preview-env
uses: humanitec/preview-envs-action@mst-wal-7302-test-on-pr
uses: humanitec/preview-envs-action@v2
with:
humanitec-org: humanitec-labs
humanitec-app: humanitec-frontend
humanitec-org: my-org
humanitec-app: my-app
action: get-environment-url
github-token: ${{ secrets.GITHUB_TOKEN }}
environment-url-template: "https://{{envId}}-app.humanitec.io"
Expand All @@ -112,7 +112,7 @@ All actions above return the output parameter `environment-url`. If you just wan

## Development

Running the tests requires an Humanitec account. Once this is created, the following environment variables need to be configure:
Running the tests requires an Humanitec account. Once this is created, the following environment variables need to be configured:

* `HUMANITEC_ORG`
* `HUMANITEC_TOKEN`
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ outputs:
humanitec-env:
description: 'The id of the created environment'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'check-square'
Expand Down
Loading