diff --git a/Makefile b/Makefile index bfb0073..06b319a 100644 --- a/Makefile +++ b/Makefile @@ -9,5 +9,5 @@ build: '--define:process.env.NODE_ENV="production"' \ --outdir=dist \ --platform=node \ - --target=node12 \ + --target=node16 \ ./src/main.ts \ No newline at end of file diff --git a/README.md b/README.md index d9f1c5c..0589c79 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # flytectl-setup-action -This action sets up [flytectl](https://docs.flyte.org/projects/flytectl/en/stable/) for use in actions by: +This action sets up [flytectl](https://docs.flyte.org/projects/flytectl/en/stable/) for use in actions. ## Usage @@ -33,15 +33,17 @@ steps: ## Getting started Example ```bash -steps: - - uses: actions/checkout@v2 - - uses: unionai-oss/flytectl-setup-action@master - - name: Setup demo cluster - run: flytectl demo start - - name: Setup flytectl config - run: flytectl config init - - name: Register Core example - run: | - FLYTESNACKS_VERSION=$(curl --silent "https://api.github.com/repos/flyteorg/flytectl/releases/latest" | jq -r .tag_name) - flytectl register files -p flytesnacks -d development --archive https://github.com/flyteorg/flytesnacks/releases/download/$FLYTESNACKS_VERSION/flytesnacks-core.tgz --version v1 +name: flytectl-setup-action +on: [push] +jobs: + install-flytectl: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: unionai-oss/flytectl-setup-action@master + - name: Setup demo cluster + run: flytectl demo start + - name: Setup flytectl config + run: flytectl config init + ``` diff --git a/action.yml b/action.yml index b300ed1..3152263 100644 --- a/action.yml +++ b/action.yml @@ -7,5 +7,5 @@ inputs: required: false default: 'latest' runs: - using: 'node12' + using: 'node16' main: './dist/main.js' diff --git a/package.json b/package.json index 1f9ec61..e8197b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flytectl-setup-action", - "version": "0.0.1", + "version": "0.0.2", "description": "Install and setup flytectl for use in other actions ", "main": "src/main.js", "scripts": {