Skip to content

Commit

Permalink
chore: node 16 -> 20
Browse files Browse the repository at this point in the history
  • Loading branch information
louisbennett committed May 7, 2024
1 parent fe96023 commit 12ae488
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
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
126 changes: 72 additions & 54 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"license": "ISC",
"devDependencies": {
"@jest/globals": "^29.3.1",
"@tsconfig/node16": "^1.0.3",
"@tsconfig/node20": "^20.1.4",
"@types/mustache": "^4.2.2",
"@types/node": "^16.18.3",
"@types/node": "^20.12.10",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"@vercel/ncc": "^0.34.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node20/tsconfig.json",
"include": ["*.ts", "src/action.ts", "src/index.ts"]
}

0 comments on commit 12ae488

Please sign in to comment.