-
Notifications
You must be signed in to change notification settings - Fork 245
chore: gha workflow updates #6591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 }} | ||
|
|
||
| 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 | ||
| 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: | | ||
|
|
||
| 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 }} | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This secret doesn't seem to exist and it's not used anywhere. |
||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| node scripts/release.js ga \ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,7 @@ jobs: | |
| with: | ||
| # don't checkout a detatched HEAD | ||
| ref: ${{ github.head_ref }} | ||
| token: ${{ steps.app-token.outputs.token }} | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The changes to this workflow are an attempt to disassociate @himanshusinghs from the generated commit. |
||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
|
|
@@ -48,3 +49,4 @@ jobs: | |
| labels: no-title-validation | ||
| body: | | ||
| - Update electron | ||
| author: "${{ steps.app-token.outputs.app-slug }}[bot]" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good change! Seems like we have something in our precommit hook logic though preventing this from being done automatically, probably worth a ticket 🤔