Skip to content

Commit

Permalink
v2 new release (#45)
Browse files Browse the repository at this point in the history
github-actions[bot] authored Mar 3, 2022
1 parent 7ad2aa6 commit 6025c84
Showing 110 changed files with 69,871 additions and 450 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @aksatlanta
* @Azure/aks-atlanta
52 changes: 5 additions & 47 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Create release PR"
name: Create release PR

on:
workflow_dispatch:
@@ -8,49 +8,7 @@ on:
required: true

jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check if remote branch exists
env:
BRANCH: releases/${{ github.event.inputs.release }}
run: |
echo "##[set-output name=exists;]$(echo $(if [[ -z $(git ls-remote --heads origin ${BRANCH}) ]]; then echo false; else echo true; fi;))"
id: extract-branch-status
# these two only need to occur if the branch exists
- name: Checkout proper branch
if: ${{ steps.extract-branch-status.outputs.exists == 'true' }}
env:
BRANCH: releases/${{ github.event.inputs.release }}
run: git checkout ${BRANCH}
- name: Reset promotion branch
if: ${{ steps.extract-branch-status.outputs.exists == 'true' }}
run: |
git fetch origin main:main
git reset --hard main
- name: Install packages
run: |
rm -rf node_modules/
npm install --no-bin-links
npm run build
- name: Remove node_modules from gitignore
run: |
sed -i '/node_modules/d' ./.gitignore
- name: Create branch
uses: peterjgrainger/action-create-branch@v2.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: releases/${{ github.event.inputs.release }}
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Add node modules and new code for release
title: ${{ github.event.inputs.release }} new release
base: releases/${{ github.event.inputs.release }}
branch: create-release
delete-branch: true
release-pr:
uses: OliverMKing/javascript-release-workflow/.github/workflows/release-pr.yml@main
with:
release: ${{ github.event.inputs.release }}
10 changes: 10 additions & 0 deletions .github/workflows/tag-and-draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Tag and create release draft

on:
push:
branches:
- releases/*

jobs:
tag-and-release:
uses: OliverMKing/javascript-release-workflow/.github/workflows/tag-and-release.yml@main
77 changes: 0 additions & 77 deletions .github/workflows/tag-and-release.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/ts-build-check.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -327,3 +327,5 @@ ASALocalRun/

# MFractors (Xamarin productivity tool) working folder
.mfractor/

# Transpiled JS
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
Acceptable values are latest or any semantic version string like `v1.15.0`. Use this action in workflow to define which version of kubectl will be used.

```yaml
- uses: azure/setup-kubectl@v1
- uses: azure/setup-kubectl@v2.0
with:
version: '<version>' # default is latest stable
id: install
18 changes: 9 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: 'Kubectl tool installer'
description: 'Install a specific version of kubectl binary. Acceptable values are latest or any semantic version string like 1.15.0'
inputs:
name: "Kubectl tool installer"
description: "Install a specific version of kubectl binary. Acceptable values are latest or any semantic version string like 1.15.0"
inputs:
version:
description: 'Version of kubectl'
description: "Version of kubectl"
required: true
default: 'latest'
default: "latest"
outputs:
kubectl-path:
description: 'Path to the cached kubectl binary'
description: "Path to the cached kubectl binary"
branding:
color: 'blue'
color: "blue"
runs:
using: 'node12'
main: 'lib/run.js'
using: "node12"
main: "lib/index.js"
32 changes: 0 additions & 32 deletions lib/helpers.js

This file was deleted.

4,662 changes: 4,662 additions & 0 deletions lib/index.js

Large diffs are not rendered by default.

76 changes: 0 additions & 76 deletions lib/run.js

This file was deleted.

163 changes: 0 additions & 163 deletions lib/run.test.js

This file was deleted.

Binary file added lib/unzip
Binary file not shown.
Binary file added lib/unzip-darwin
Binary file not shown.
11 changes: 11 additions & 0 deletions node_modules/.package-lock.json
7 changes: 7 additions & 0 deletions node_modules/@vercel/ncc/LICENSE
1 change: 1 addition & 0 deletions node_modules/@vercel/ncc/dist/ncc/@@notfound.js
339 changes: 339 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/LICENSES.txt
7 changes: 7 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/buildin/readme.md
9 changes: 9 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/cli.js
1 change: 1 addition & 0 deletions node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/index.js
37 changes: 37 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/index.js.cache.js

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/empty-loader.js
7 changes: 7 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/notfound-loader.js
11 changes: 11 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/readme.md
8 changes: 8 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js
8 changes: 8 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/stringify-loader.js
8 changes: 8 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js
62 changes: 62 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache.js

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.d.ts
18,924 changes: 18,924 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.dom.d.ts

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4,435 changes: 4,435 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es5.d.ts

Large diffs are not rendered by default.

6,029 changes: 6,029 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.webworker.d.ts

Large diffs are not rendered by default.

2,967 changes: 2,967 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/protocol.d.ts

Large diffs are not rendered by default.

11,279 changes: 11,279 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/tsserverlibrary.d.ts

Large diffs are not rendered by default.

7,478 changes: 7,478 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/typescript.d.ts

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/loaders/uncacheable.js
Binary file added node_modules/@vercel/ncc/dist/ncc/mappings.wasm
Binary file not shown.
11 changes: 11 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/readme.md
8 changes: 8 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/sourcemap-register.js

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions node_modules/@vercel/ncc/dist/ncc/typescript.js
9 changes: 9 additions & 0 deletions node_modules/@vercel/ncc/dist/readme.md
119 changes: 119 additions & 0 deletions node_modules/@vercel/ncc/package.json
154 changes: 154 additions & 0 deletions node_modules/@vercel/ncc/readme.md
18 changes: 18 additions & 0 deletions package-lock.json
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -2,9 +2,9 @@
"name": "setup-kubectl-action",
"version": "0.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"
},
@@ -22,9 +22,10 @@
},
"devDependencies": {
"@types/node": "^12.0.4",
"@vercel/ncc": "^0.33.1",
"jest": "^26.0.1",
"@types/jest": "^25.2.2",
"ts-jest": "^25.5.1",
"typescript": "3.9.2"
}
}
}

0 comments on commit 6025c84

Please sign in to comment.