diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index c45482ec..d3602cd9 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -20,7 +20,10 @@ jobs: id: npm-build run: | npm install - npm run build + + - name: Build + run: npm run build + - name: Set Context uses: ./ with: diff --git a/action.yml b/action.yml index 7b726c22..6b98214a 100644 --- a/action.yml +++ b/action.yml @@ -36,4 +36,4 @@ branding: color: 'blue' runs: using: 'node16' - main: 'lib/run.js' + main: 'lib/index.js' diff --git a/package.json b/package.json index cbcfd3e1..51d8d33f 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,9 @@ "name": "k8s-set-context-action", "version": "1.0.0", "private": true, - "main": "lib/run.js", + "main": "lib/index.js", "scripts": { - "build": "tsc --outDir ./lib --rootDir ./src", + "build": "ncc build src/run.ts -o lib", "test": "jest", "test-coverage": "jest --coverage", "format": "prettier --write .", @@ -28,6 +28,7 @@ "@types/jest": "^28.1.2", "@types/js-yaml": "^4.0.4", "@types/node": "^16.0.0", + "@vercel/ncc": "^0.34.0", "jest": "^28.1.1", "prettier": "2.7.1", "ts-jest": "^28.0.5",