add changeset config to CI (#618)

* fix: get user by email  name is wrong

* fix: improve message

* feat: add changeset

* feat: add changelog CI config

* fix: data-services version

* fix: Conflict resolution

* feat: add changelog CI config

* fix: data-services version
This commit is contained in:
DiamondThree
2022-12-29 09:38:58 +00:00
committed by GitHub
parent 568df49fde
commit cc72448ba3
10 changed files with 881 additions and 7 deletions

8
.changeset/README.md Normal file
View File

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

11
.changeset/config.json Normal file
View File

@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "feat/filesystem_and_search",
"updateInternalDependencies": "patch",
"ignore": []
}

View File

@@ -0,0 +1,5 @@
---
'@affine/app': major
---
add changeset config

49
.github/workflows/changlog.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
name: Pathfinder changelog
on:
push:
branches: [feat/filesystem_and_search, master]
# Cancels all previous workflow runs for pull requests that have not completed.
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
# The concurrency group contains the workflow name and the branch name for
# pull requests or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build:
name: publish changelog
runs-on: self-hosted
environment: development
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 'latest'
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
- name: Restore cache
uses: actions/cache@v3
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Create changelog
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -39,7 +39,8 @@
"ts-jest": "^29.0.3",
"typescript": "^4.9.3",
"lint-staged": "^13.1.0",
"husky": "^8.0.2"
"husky": "^8.0.2",
"@changesets/cli": "^2.26.0"
},
"eslintConfig": {
"root": true,

View File

@@ -10,7 +10,7 @@
"lint": "next lint"
},
"dependencies": {
"@affine/data-services": "workspace:@affine/data-services@*",
"@affine/data-services": "workspace:*",
"@blocksuite/blocks": "0.3.0-20221228162706-9576a3a",
"@blocksuite/editor": "0.3.0-20221228162706-9576a3a",
"@blocksuite/icons": "^2.0.2",

View File

@@ -62,7 +62,7 @@ export const InviteMembers = ({
() => {
getUserByEmail({
email: value,
workspaceId,
workspace_id: workspaceId,
}).then(data => {
if (data?.name) {
setUserData(data);

View File

@@ -307,7 +307,7 @@ const PublishPage = ({ workspace }: { workspace: Workspace }) => {
};
const copyUrl = () => {
navigator.clipboard.writeText(shareUrl);
toast('Copied');
toast('Copied url to clipboard');
};
return (
<div>

View File

@@ -2,7 +2,7 @@ import { client } from '../request';
export interface GetUserByEmailParams {
email: string;
workspaceId: string;
workspace_id: string;
}
export interface User {

804
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff