fix broken build - switch to ncc build (#56)

* switch to ncc build

* update

* bump ncc
This commit is contained in:
David Gamero
2022-06-30 16:24:00 -04:00
committed by GitHub
parent 4a983766a0
commit 6331e961d2
3 changed files with 8 additions and 4 deletions

View File

@ -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:

View File

@ -36,4 +36,4 @@ branding:
color: 'blue'
runs:
using: 'node16'
main: 'lib/run.js'
main: 'lib/index.js'

View File

@ -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",