Add workflow for pl-api build

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-09-23 11:45:56 +02:00
parent 8871284405
commit 0c69c608c7
5 changed files with 47 additions and 9 deletions

41
.github/workflows/pl-api.yaml vendored Normal file
View file

@ -0,0 +1,41 @@
name: pl-api CI
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
name: Test for a successful build
strategy:
matrix:
node-version: [21.x]
steps:
- name: Install system dependencies
run: sudo apt install -y unzip
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install deps
working-directory: ./packages/pl-api
run: yarn install --ignore-scripts
- name: Lint
working-directory: ./packages/pl-api
run: yarn lint
- name: build
env:
NODE_ENV: production
working-directory: ./packages/pl-api
run: yarn build

View file

@ -425,7 +425,7 @@ const getFeatures = (instance: Instance) => {
* Ability to add emoji reactions to a status.
* @see PUT /api/v1/pleroma/statuses/:id/reactions/:emoji
* @see DELETE /api/v1/pleroma/statuses/:id/reactions/:emoji
*
*
* @see POST /v1/statuses/:id/react/:emoji
* @see POST /v1/statuses/:id/unreact/:emoji
*/

View file

@ -13,7 +13,8 @@
"scripts": {
"dev": "vite",
"build": "tsc --p ./tsconfig-build.json && vite build",
"preview": "vite preview"
"preview": "vite preview",
"lint": "npx eslint --ext .js,.jsx,.cjs,.mjs,.ts,.tsx . --cache"
},
"license": "AGPL-3.0-or-later",
"devDependencies": {

View file

@ -2247,7 +2247,7 @@ semver@^6.3.1:
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
semver@^7.5.4, semver@^7.6.0, semver@^7.6.2, semver@^7.6.3:
semver@^7.6.0, semver@^7.6.2, semver@^7.6.3:
version "7.6.3"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143"
integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==

View file

@ -135,9 +135,7 @@ const ComposeEditor = React.forwardRef<LexicalEditor, IComposeEditor>(({
paragraph.append(textNode);
$getRoot()
.clear()
.append(paragraph);
$getRoot().clear().append(paragraph);
return;
}
@ -154,9 +152,7 @@ const ComposeEditor = React.forwardRef<LexicalEditor, IComposeEditor>(({
paragraph.append(textNode);
$getRoot()
.clear()
.append(paragraph);
$getRoot().clear().append(paragraph);
}
};
}),