-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
102 additions
and
101 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
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 |
---|---|---|
|
@@ -5,9 +5,9 @@ on: | |
workflow_dispatch: | ||
inputs: | ||
dryRun: | ||
description: 'Run publish in dry-run mode (WARN: think twice when changing this value, this will override currently published manifest in download center!)' | ||
description: "Run publish in dry-run mode (WARN: think twice when changing this value, this will override currently published manifest in download center!)" | ||
required: true | ||
default: 'true' | ||
default: "true" | ||
release: | ||
types: [published] | ||
|
||
|
@@ -17,13 +17,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js Environment | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.16.0 | ||
cache: 'npm' | ||
cache: "npm" | ||
|
||
- name: Install [email protected] | ||
run: | | ||
|
@@ -36,7 +36,7 @@ jobs: | |
- name: Upload updated download center manifest | ||
env: | ||
DEBUG: 'hadron*,mongo*,compass*' | ||
DEBUG: "hadron*,mongo*,compass*" | ||
DOWNLOAD_CENTER_AWS_ACCESS_KEY_ID: ${{ secrets.DOWNLOAD_CENTER_AWS_ACCESS_KEY_ID }} | ||
DOWNLOAD_CENTER_AWS_SECRET_ACCESS_KEY: ${{ secrets.DOWNLOAD_CENTER_AWS_SECRET_ACCESS_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -18,45 +18,45 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# don't checkout a detatched HEAD | ||
ref: ${{ github.head_ref }} | ||
|
||
# this is important so git log has the whole history | ||
fetch-depth: '0' | ||
|
||
- name: Setup git | ||
run: | | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- name: "Use Node.js 14" | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.16.0 | ||
|
||
- name: Install [email protected] | ||
run: npm install -g [email protected] | ||
|
||
- name: Install Dependencies | ||
run: | | ||
npm run bootstrap-ci | ||
shell: bash | ||
|
||
- name: "Publish what is not already in NPM" | ||
env: | ||
NPM_TOKEN: ${{ secrets.DEVTOOLSBOT_NPM_TOKEN }} | ||
run: | | ||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc | ||
npm config list | ||
echo "Publishing packages as $(npm whoami)" | ||
git update-index --assume-unchanged .npmrc | ||
npm run publish-packages | ||
- name: "Publish tags" | ||
run: | | ||
npx lerna list -a --json | \ | ||
jq -r '.[] | .name + "@" + .version' | \ | ||
xargs -i sh -c "git tag -a {} -m {} || true" | ||
git push --follow-tags | ||
- uses: actions/checkout@v4 | ||
with: | ||
# don't checkout a detatched HEAD | ||
ref: ${{ github.head_ref }} | ||
|
||
# this is important so git log has the whole history | ||
fetch-depth: "0" | ||
|
||
- name: Setup git | ||
run: | | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- name: "Use Node.js 20" | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.16.0 | ||
|
||
- name: Install [email protected] | ||
run: npm install -g [email protected] | ||
|
||
- name: Install Dependencies | ||
run: | | ||
npm run bootstrap-ci | ||
shell: bash | ||
|
||
- name: "Publish what is not already in NPM" | ||
env: | ||
NPM_TOKEN: ${{ secrets.DEVTOOLSBOT_NPM_TOKEN }} | ||
run: | | ||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc | ||
npm config list | ||
echo "Publishing packages as $(npm whoami)" | ||
git update-index --assume-unchanged .npmrc | ||
npm run publish-packages | ||
- name: "Publish tags" | ||
run: | | ||
npx lerna list -a --json | \ | ||
jq -r '.[] | .name + "@" + .version' | \ | ||
xargs -i sh -c "git tag -a {} -m {} || true" | ||
git push --follow-tags |
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 |
---|---|---|
|
@@ -5,32 +5,32 @@ on: | |
inputs: | ||
mergeBranch: | ||
description: 'mergeBranch (optional, default="main"): the branch to merge from, useful to perform quick fixes outside of main.' | ||
default: 'main' | ||
default: "main" | ||
required: false | ||
overrideNextGa: | ||
description: 'overrideNextGa (optional): set this param if you want to override the nextGa version that is fetched from jira versions, and use a different one.' | ||
description: "overrideNextGa (optional): set this param if you want to override the nextGa version that is fetched from jira versions, and use a different one." | ||
required: false | ||
schedule: | ||
# Each Monday at 5 AM UTC | ||
- cron: '0 5 * * 1' | ||
- cron: "0 5 * * 1" | ||
|
||
jobs: | ||
startRelease: | ||
name: Start new Beta release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup git | ||
run: | | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.16.0 | ||
cache: 'npm' | ||
cache: "npm" | ||
|
||
- name: Install [email protected] | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -7,30 +7,30 @@ on: | |
workflow_dispatch: | ||
inputs: | ||
releaseTicket: | ||
description: 'releaseTicket (required): it must have a fixVersion which will be used as release version.' | ||
description: "releaseTicket (required): it must have a fixVersion which will be used as release version." | ||
required: true | ||
mergeBranch: | ||
description: 'mergeBranch (optional, default="beta-releases"): the branch to merge from, useful to perform quick fixes or to skip beta.' | ||
default: 'beta-releases' | ||
default: "beta-releases" | ||
required: false | ||
|
||
jobs: | ||
startRelease: | ||
name: Start new GA release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup git | ||
run: | | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.16.0 | ||
cache: 'npm' | ||
cache: "npm" | ||
|
||
- name: Install [email protected] | ||
run: | | ||
|
@@ -43,7 +43,6 @@ jobs: | |
- name: Start Release | ||
env: | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
node scripts/release.js ga \ | ||
|
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