diff --git a/.github/workflows/release-create-kpt-functions.yaml b/.github/workflows/release-create-kpt-functions.yaml index ea0b3631f..18a3d13a9 100644 --- a/.github/workflows/release-create-kpt-functions.yaml +++ b/.github/workflows/release-create-kpt-functions.yaml @@ -8,8 +8,23 @@ on: jobs: node-ci: runs-on: ubuntu-latest + env: + GOPATH: /home/runner/work/kpt-functions-sdk/go + GO111MODULE: off steps: - - uses: actions/checkout@v1 + - name: Set up Go 1.13 + uses: actions/setup-go@v1 + with: + go-version: 1.13 + id: go + - name: Check out code into GOPATH + uses: actions/checkout@v1 + with: + path: go/src/github.com/${{ github.repository }} + - name: Build, Test, Lint + run: | + cd go + make publish-typegen - name: Use Node.js 12.x uses: actions/setup-node@v1 with: diff --git a/ts/create-kpt-functions/package.json b/ts/create-kpt-functions/package.json index 45a582289..ca0054204 100644 --- a/ts/create-kpt-functions/package.json +++ b/ts/create-kpt-functions/package.json @@ -1,6 +1,6 @@ { "name": "@googlecontainertools/create-kpt-functions", - "version": "0.12.0", + "version": "0.13.0", "description": "KPT functions CLI", "author": "KPT Authors", "license": "Apache-2.0", @@ -22,7 +22,7 @@ "prepare": "npm run build", "build": "tsc", "watch": "tsc --watch", - "prepublishOnly": "npm test && npm run lint", + "prepublishOnly": "ls bin/typegen_darwin_amd64 bin/typegen_linux_amd64 bin/typegen_windows_amd64", "clean": "rm -Rf node_modules/ dist/", "lint": "tslint -p package.json; prettier \"src/**\" \"*.json\" --check", "lint-license": "license-checker --onlyAllow 'Apache-2.0;MIT;BSD;BSD-2-Clause;BSD-3-Clause;ISC;CC-BY-3.0;CC0-1.0;Unlicense'", diff --git a/ts/create-kpt-functions/templates/package.json.mustache b/ts/create-kpt-functions/templates/package.json.mustache index 5f6ebafba..40ededf11 100644 --- a/ts/create-kpt-functions/templates/package.json.mustache +++ b/ts/create-kpt-functions/templates/package.json.mustache @@ -15,7 +15,7 @@ "kpt:type-create": "kpt type-create" }, "dependencies": { - "@googlecontainertools/kpt-functions": "^0.10.0" + "@googlecontainertools/kpt-functions": "^0.13.0" }, "devDependencies": { "@googlecontainertools/create-kpt-functions": "^0.12.0",