Skip to content
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 verify changesets step #65

Merged
merged 3 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0

- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
Expand All @@ -90,6 +91,11 @@ jobs:
- name: type checking and declarations
run: yarn tsc:full

- name: Verify changesets
if: ${{ !(github.actor == 'rhdh-bot' || github.actor == 'github-actions[bot]') && matrix.workspace != 'repo-tools' && matrix.workspace != 'noop' }}
run: |
yarn changeset status --since=${{ github.event.pull_request.base.sha }}

- name: prettier
run: yarn prettier:check

Expand Down
2 changes: 1 addition & 1 deletion workspaces/bulk-import/packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@backstage/plugin-search-backend-node": "^1.3.4",
"@backstage/plugin-techdocs-backend": "^1.11.1",
"@red-hat-developer-hub/backstage-plugin-bulk-import-backend": "workspace:^",
"app": "link:../app",
"app": "workspace:*",
"better-sqlite3": "^9.0.0",
"node-gyp": "^10.0.0",
"pg": "^8.11.3",
Expand Down
10 changes: 2 additions & 8 deletions workspaces/bulk-import/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15333,13 +15333,7 @@ __metadata:
languageName: node
linkType: hard

"app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend":
version: 0.0.0-use.local
resolution: "app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend"
languageName: node
linkType: soft

"app@workspace:packages/app":
"app@workspace:*, app@workspace:packages/app":
version: 0.0.0-use.local
resolution: "app@workspace:packages/app"
dependencies:
Expand Down Expand Up @@ -16108,7 +16102,7 @@ __metadata:
"@types/express": ^4.17.6
"@types/express-serve-static-core": ^4.17.5
"@types/luxon": ^2.0.4
app: "link:../app"
app: "workspace:*"
better-sqlite3: ^9.0.0
node-gyp: ^10.0.0
pg: ^8.11.3
Expand Down
2 changes: 1 addition & 1 deletion workspaces/homepage/packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@backstage/plugin-search-backend-module-techdocs": "^0.3.0",
"@backstage/plugin-search-backend-node": "^1.3.3",
"@backstage/plugin-techdocs-backend": "^1.11.0",
"app": "link:../app",
"app": "workspace:*",
"better-sqlite3": "^9.0.0",
"node-gyp": "^10.0.0",
"pg": "^8.11.3"
Expand Down
10 changes: 2 additions & 8 deletions workspaces/homepage/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14347,13 +14347,7 @@ __metadata:
languageName: node
linkType: hard

"app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend":
version: 0.0.0-use.local
resolution: "app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend"
languageName: node
linkType: soft

"app@workspace:packages/app":
"app@workspace:*, app@workspace:packages/app":
version: 0.0.0-use.local
resolution: "app@workspace:packages/app"
dependencies:
Expand Down Expand Up @@ -15057,7 +15051,7 @@ __metadata:
"@backstage/plugin-search-backend-module-techdocs": ^0.3.0
"@backstage/plugin-search-backend-node": ^1.3.3
"@backstage/plugin-techdocs-backend": ^1.11.0
app: "link:../app"
app: "workspace:*"
better-sqlite3: ^9.0.0
node-gyp: ^10.0.0
pg: ^8.11.3
Expand Down
6 changes: 5 additions & 1 deletion workspaces/lightspeed/.changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch"
"updateInternalDependencies": "patch",
"privatePackages": {
"tag": false,
"version": false
}
}
2 changes: 1 addition & 1 deletion workspaces/lightspeed/packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@backstage/plugin-search-backend-node": "^1.3.5",
"@backstage/plugin-techdocs-backend": "^1.11.2",
"@red-hat-developer-hub/backstage-plugin-lightspeed-backend": "workspace:^",
"app": "link:../app",
"app": "workspace:*",
"better-sqlite3": "^9.0.0",
"node-gyp": "^10.0.0",
"pg": "^8.11.3"
Expand Down
10 changes: 2 additions & 8 deletions workspaces/lightspeed/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15287,13 +15287,7 @@ __metadata:
languageName: node
linkType: hard

"app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend":
version: 0.0.0-use.local
resolution: "app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend"
languageName: node
linkType: soft

"app@workspace:packages/app":
"app@workspace:*, app@workspace:packages/app":
version: 0.0.0-use.local
resolution: "app@workspace:packages/app"
dependencies:
Expand Down Expand Up @@ -16014,7 +16008,7 @@ __metadata:
"@backstage/plugin-search-backend-node": ^1.3.5
"@backstage/plugin-techdocs-backend": ^1.11.2
"@red-hat-developer-hub/backstage-plugin-lightspeed-backend": "workspace:^"
app: "link:../app"
app: "workspace:*"
better-sqlite3: ^9.0.0
node-gyp: ^10.0.0
pg: ^8.11.3
Expand Down
2 changes: 1 addition & 1 deletion workspaces/marketplace/packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@backstage/plugin-search-backend-node": "^1.3.3",
"@backstage/plugin-techdocs-backend": "^1.11.0",
"@red-hat-developer-hub/backstage-plugin-marketplace-backend": "workspace:^",
"app": "link:../app",
"app": "workspace:*",
"better-sqlite3": "^9.0.0",
"node-gyp": "^10.0.0",
"pg": "^8.11.3"
Expand Down
10 changes: 2 additions & 8 deletions workspaces/marketplace/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14356,13 +14356,7 @@ __metadata:
languageName: node
linkType: hard

"app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend":
version: 0.0.0-use.local
resolution: "app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend"
languageName: node
linkType: soft

"app@workspace:packages/app":
"app@workspace:*, app@workspace:packages/app":
version: 0.0.0-use.local
resolution: "app@workspace:packages/app"
dependencies:
Expand Down Expand Up @@ -15068,7 +15062,7 @@ __metadata:
"@backstage/plugin-search-backend-node": ^1.3.3
"@backstage/plugin-techdocs-backend": ^1.11.0
"@red-hat-developer-hub/backstage-plugin-marketplace-backend": "workspace:^"
app: "link:../app"
app: "workspace:*"
better-sqlite3: ^9.0.0
node-gyp: ^10.0.0
pg: ^8.11.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@backstage/plugin-search-backend-module-techdocs": "^0.3.1",
"@backstage/plugin-search-backend-node": "^1.3.4",
"@backstage/plugin-techdocs-backend": "^1.11.1",
"app": "link:../app",
"app": "workspace:*",
"better-sqlite3": "^9.0.0",
"node-gyp": "^10.0.0",
"pg": "^8.11.3",
Expand Down
10 changes: 2 additions & 8 deletions workspaces/openshift-image-registry/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15065,13 +15065,7 @@ __metadata:
languageName: node
linkType: hard

"app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend":
version: 0.0.0-use.local
resolution: "app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend"
languageName: node
linkType: soft

"app@workspace:packages/app":
"app@workspace:*, app@workspace:packages/app":
version: 0.0.0-use.local
resolution: "app@workspace:packages/app"
dependencies:
Expand Down Expand Up @@ -15781,7 +15775,7 @@ __metadata:
"@types/express": ^4.17.6
"@types/express-serve-static-core": ^4.17.5
"@types/luxon": ^2.0.4
app: "link:../app"
app: "workspace:*"
better-sqlite3: ^9.0.0
node-gyp: ^10.0.0
pg: ^8.11.3
Expand Down
2 changes: 1 addition & 1 deletion workspaces/theme/packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@backstage/plugin-search-backend-module-techdocs": "^0.3.0",
"@backstage/plugin-search-backend-node": "^1.3.3",
"@backstage/plugin-techdocs-backend": "^1.11.0",
"app": "link:../app",
"app": "workspace:*",
"better-sqlite3": "^9.0.0",
"node-gyp": "^10.0.0",
"pg": "^8.11.3"
Expand Down
10 changes: 2 additions & 8 deletions workspaces/theme/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14133,13 +14133,7 @@ __metadata:
languageName: node
linkType: hard

"app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend":
version: 0.0.0-use.local
resolution: "app@link:../app::locator=backend%40workspace%3Apackages%2Fbackend"
languageName: node
linkType: soft

"app@workspace:packages/app":
"app@workspace:*, app@workspace:packages/app":
version: 0.0.0-use.local
resolution: "app@workspace:packages/app"
dependencies:
Expand Down Expand Up @@ -14843,7 +14837,7 @@ __metadata:
"@backstage/plugin-search-backend-module-techdocs": ^0.3.0
"@backstage/plugin-search-backend-node": ^1.3.3
"@backstage/plugin-techdocs-backend": ^1.11.0
app: "link:../app"
app: "workspace:*"
better-sqlite3: ^9.0.0
node-gyp: ^10.0.0
pg: ^8.11.3
Expand Down