forked from kubernetes-client/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-1.x' into proxy-url-release-1.x
- Loading branch information
Showing
18 changed files
with
164 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,61 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
type: string | ||
required: true | ||
description: The version of this release. Must be a semantic version of the form X.Y.Z. | ||
dry_run: | ||
type: boolean | ||
required: true | ||
default: false | ||
description: Dry run, will not push branches or upload the artifacts. | ||
skip_tag: | ||
type: boolean | ||
required: true | ||
default: false | ||
description: If true, don't tag this release, just push it. | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
type: string | ||
required: true | ||
description: The version of this release. Must be a semantic version of the form X.Y.Z. | ||
dry_run: | ||
type: boolean | ||
required: true | ||
default: false | ||
description: Dry run, will not push branches or upload the artifacts. | ||
skip_tag: | ||
type: boolean | ||
required: true | ||
default: false | ||
description: If true, don't tag this release, just push it. | ||
pre_release: | ||
type: boolean | ||
required: true | ||
default: false | ||
description: If true, mark this as a pre-release | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
environment: production | ||
steps: | ||
- name: Checkout Javascript | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Package | ||
run: ./build-package.sh | ||
- name: Upload pre-release | ||
if: ${{ github.event.inputs.dry_run != 'true' }} | ||
run: npm publish --tag next | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
- name: Tag release | ||
if: ${{ github.event.inputs.skip_tag != 'true' }} | ||
run: | | ||
git config --global user.name 'Github Bot' | ||
git config --global user.email '<>' | ||
git tag ${{ github.events.inputs.version }} | ||
- name: Push tag | ||
if: ${{ github.event.inputs.dry_run != 'true' }} | ||
run: | | ||
git push ${{ github.events.inputs.version }} | ||
release: | ||
runs-on: ubuntu-latest | ||
environment: production | ||
steps: | ||
- name: Checkout Javascript | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Package | ||
run: ./build-package.sh | ||
- name: Upload release | ||
if: ${{ github.event.inputs.dry_run != 'true' && github.event.inputs.pre_release != 'true' }} | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
- name: Upload pre-release | ||
if: ${{ github.event.inputs.dry_run != 'true' && github.event.inputs.pre_release == 'true' }} | ||
run: npm publish --tag next | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
- name: Tag release | ||
if: ${{ github.event.inputs.skip_tag != 'true' }} | ||
run: | | ||
git config --global user.name 'Github Bot' | ||
git config --global user.email '<>' | ||
git tag ${{ github.events.inputs.version }} | ||
- name: Push tag | ||
if: ${{ github.event.inputs.dry_run != 'true' }} | ||
run: | | ||
git push ${{ github.events.inputs.version }} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.