Skip to content

Commit 658b777

Browse files
authored
Merge pull request #20 from StackExchange/dev
Adding Changeset and change NPM package location
2 parents 6a61bad + 00e591a commit 658b777

File tree

22 files changed

+8435
-8225
lines changed

22 files changed

+8435
-8225
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- 'plugins/**'
8+
workflow_dispatch:
9+
10+
# Required for trusted publishing
11+
permissions:
12+
contents: read
13+
id-token: write # Needed for provenance and trusted publishing
14+
15+
concurrency: ${{ github.workflow }}-${{ github.ref }}
16+
17+
jobs:
18+
release:
19+
name: Release
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout Repo
23+
uses: actions/checkout@v3
24+
25+
- name: Setup Node.js 20.x
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: 20.x
29+
cache: 'yarn'
30+
registry-url: 'https://registry.npmjs.org'
31+
32+
- name: Install Dependencies
33+
run: yarn install --frozen-lockfile
34+
35+
- name: Create Release Pull Request or Publish to npm
36+
id: changesets
37+
uses: changesets/action@v1
38+
with:
39+
publish: yarn changeset publish --provenance
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@
4040
},
4141
"resolutions": {
4242
"@types/react": "^18",
43-
"@types/react-dom": "^18"
43+
"@types/react-dom": "^18",
44+
"@backstage/backend-defaults": "0.13.0",
45+
"@backstage/plugin-catalog-backend": "3.1.2",
46+
"@backstage/plugin-auth-backend": "0.25.5",
47+
"@backstage/plugin-scaffolder-backend": "1.33.0",
48+
"@backstage/backend-plugin-api": "1.4.4",
49+
"@backstage/config": "1.3.5",
50+
"@backstage/cli": "0.34.4"
4451
},
4552
"prettier": "@backstage/cli/config/prettier",
4653
"lint-staged": {
@@ -52,5 +59,8 @@
5259
"prettier --write"
5360
]
5461
},
55-
"packageManager": "yarn@4.6.0"
62+
"packageManager": "yarn@4.6.0",
63+
"dependencies": {
64+
"@changesets/cli": "^2.29.5"
65+
}
5666
}

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@backstage/theme": "^0.6.3",
4141
"@material-ui/core": "^4.12.2",
4242
"@material-ui/icons": "^4.9.1",
43-
"backstage-plugin-stack-overflow-teams": "workspace:*",
43+
"@stackoverflow/backstage-plugin-stack-overflow-teams": "workspace:*",
4444
"react": "^18.0.2",
4545
"react-dom": "^18.0.2",
4646
"react-router": "^6.3.0",

packages/app/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import { AppRouter, FlatRoutes } from '@backstage/core-app-api';
3636
import { CatalogGraphPage } from '@backstage/plugin-catalog-graph';
3737
import { RequirePermission } from '@backstage/plugin-permission-react';
3838
import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';
39-
import { StackOverflowTeamsPage } from 'backstage-plugin-stack-overflow-teams';
39+
import { StackOverflowTeamsPage } from '@stackoverflow/backstage-plugin-stack-overflow-teams';
4040

4141
const app = createApp({
4242
apis,

packages/app/src/components/Root/Root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import MenuIcon from '@material-ui/icons/Menu';
2727
import SearchIcon from '@material-ui/icons/Search';
2828
import { MyGroupsSidebarItem } from '@backstage/plugin-org';
2929
import GroupIcon from '@material-ui/icons/People';
30-
import { StackOverflowIcon, StackOverflowPostQuestionModal } from 'backstage-plugin-stack-overflow-teams';
30+
import { StackOverflowIcon, StackOverflowPostQuestionModal } from '@stackoverflow/backstage-plugin-stack-overflow-teams';
3131

3232
const useSidebarLogoStyles = makeStyles({
3333
root: {

packages/app/src/components/search/SearchPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { useApi } from '@backstage/core-plugin-api';
1919
import {
2020
StackOverflowIcon,
2121
StackOverflowSearchResultListItem,
22-
} from 'backstage-plugin-stack-overflow-teams';
22+
} from '@stackoverflow/backstage-plugin-stack-overflow-teams';
2323

2424
const useStyles = makeStyles((theme: Theme) => ({
2525
bar: {

packages/backend/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@
2727
"@backstage/plugin-catalog-backend-module-logs": "^0.1.5",
2828
"@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "^0.2.3",
2929
"@backstage/plugin-kubernetes-backend": "^0.19.1",
30-
"@backstage/plugin-permission-backend": "^0.7.2",
30+
"@backstage/plugin-permission-backend": "^0.5.52",
3131
"@backstage/plugin-permission-backend-module-allow-all-policy": "^0.2.3",
3232
"@backstage/plugin-permission-common": "^0.8.3",
3333
"@backstage/plugin-permission-node": "^0.8.6",
3434
"@backstage/plugin-proxy-backend": "^0.5.9",
35-
"@backstage/plugin-scaffolder-backend": "^2.2.0",
35+
"@backstage/plugin-scaffolder-backend": "^1.28.0",
3636
"@backstage/plugin-scaffolder-backend-module-github": "^0.5.4",
3737
"@backstage/plugin-search-backend": "^1.8.0",
3838
"@backstage/plugin-search-backend-module-catalog": "^0.2.6",
3939
"@backstage/plugin-search-backend-module-pg": "^0.5.39",
4040
"@backstage/plugin-search-backend-module-techdocs": "^0.3.4",
4141
"@backstage/plugin-search-backend-node": "^1.3.6",
4242
"@backstage/plugin-techdocs-backend": "^1.11.4",
43+
"@stackoverflow/backstage-plugin-stack-overflow-teams-backend": "workspace:*",
44+
"@stackoverflow/backstage-stack-overflow-teams-collator": "workspace:*",
4345
"app": "link:../app",
44-
"backstage-plugin-stack-overflow-teams-backend": "workspace:*",
45-
"backstage-stack-overflow-teams-collator": "workspace:*",
4646
"better-sqlite3": "^9.0.0",
4747
"dotenv": "^16.4.7",
4848
"node-gyp": "^10.0.0",

packages/backend/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ backend.add(import('@backstage/plugin-kubernetes-backend'));
5757

5858
// StackOverflow
5959

60-
backend.add(import('backstage-plugin-stack-overflow-teams-backend')); // Teams Backend
61-
backend.add(import('backstage-stack-overflow-teams-collator')); // Optional questions collator
60+
backend.add(import('@stackoverflow/backstage-plugin-stack-overflow-teams-backend')); // Teams Backend
61+
backend.add(import('@stackoverflow/backstage-stack-overflow-teams-collator')); // Optional questions collator
6262

6363
backend.start();

0 commit comments

Comments
 (0)