-
Notifications
You must be signed in to change notification settings - Fork 67
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
chore(ci): add individual publishing of packages MONGOSH-1871 #2289
base: main
Are you sure you want to change the base?
Changes from 1 commit
a2f246b
417e1f4
447e8d1
4c97468
8c9c214
03ba373
ad630dc
28bfce7
45469f9
be919e0
43c551d
71aaa79
ceb13e7
42d19ea
bad9d59
193aa09
a19f408
7ec4049
67c690d
9c4b387
4f43369
c9fd356
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Bump packages | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
update_generated_files: | ||
name: Bump packages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create Github App Token | ||
uses: mongodb-js/devtools-shared/actions/setup-bot-token@main | ||
id: app-token | ||
with: | ||
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }} | ||
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }} | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
# don't checkout a detatched HEAD | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.16.0 | ||
cache: "npm" | ||
|
||
- name: Install [email protected] | ||
run: | | ||
npm install -g [email protected] | ||
|
||
- name: Install Dependencies | ||
run: | | ||
npm -v | ||
npm ci | ||
|
||
- name: Bump packages | ||
env: | ||
LAST_BUMP_COMMIT_MESSAGE: "chore(release): bump package versions" | ||
SKIP_BUMP_PACKAGES: "mongodb-compass" | ||
gagik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
run: | | ||
npm run bump-packages | ||
git add . | ||
git commit --no-allow-empty -m "$LAST_BUMP_COMMIT_MESSAGE" || true | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # 7.0.5 | ||
with: | ||
token: ${{ steps.app-token.outputs.token }} | ||
commit-message: "chore(release): bump package versions" | ||
branch: ci/bump-packages | ||
title: "chore(release): bump package versions" | ||
labels: no-title-validation | ||
body: | | ||
- Bump package versions |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
{ | ||
"packages": [ | ||
"configs/*", | ||
gagik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"packages/*", | ||
"scripts/docker" | ||
], | ||
"version": "0.0.0-dev.0" | ||
"packages": ["configs/*", "packages/*", "scripts/docker"], | ||
"version": "independent" | ||
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. @addaleax I'm a bit unsure how to go about all this to the point where I can feel much confidence;
I tried i.e. running I assume some of these packages we'd like to ignore right? And also some which we should keep at 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.
Well, the |
||
} |
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.
I think this should be already set for us?