Skip to content

Commit 9ce7779

Browse files
committed
chore : update Github workflows and dependencies
Includes fixes for issues from PR editor-js#73 where deployment failed
1 parent 8d1bcbe commit 9ce7779

File tree

6 files changed

+541
-249
lines changed

6 files changed

+541
-249
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = false
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
quote_type = single

.github/workflows/eslint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: ESLint CodeX
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
lint:
7+
name: ESlint
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- run: yarn install
12+
- run: yarn lint

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,8 @@ on:
66
- master
77

88
jobs:
9-
publish:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v1
14-
with:
15-
node-version: 19
16-
registry-url: https://registry.npmjs.org/
17-
- run: yarn
18-
- run: yarn build
19-
- run: yarn publish --access=public
20-
env:
21-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22-
notify:
23-
needs: publish
24-
runs-on: ubuntu-latest
25-
steps:
26-
- uses: actions/checkout@v2
27-
- name: Get package info
28-
id: package
29-
uses: codex-team/action-nodejs-package-info@v1
30-
- name: Send a message
31-
uses: codex-team/action-codexbot-notify@v1
32-
with:
33-
webhook: ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }}
34-
message: '📦 [${{ steps.package.outputs.name }}](${{ steps.package.outputs.npmjs-link }}) ${{ steps.package.outputs.version }} was published'
35-
parse_mode: 'markdown'
36-
disable_web_page_preview: true
9+
publish-and-notify:
10+
uses: codex-team/github-workflows/.github/workflows/npm-publish-and-notify-reusable.yml@main
11+
secrets:
12+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
13+
CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT: ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }}

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@editorjs/code",
3-
"version": "2.9.1",
3+
"version": "2.9.2",
44
"keywords": [
55
"codex editor",
66
"code",
@@ -36,9 +36,10 @@
3636
},
3737
"devDependencies": {
3838
"@editorjs/editorjs": "^2.30.2",
39-
"@typescript-eslint/eslint-plugin": "^7.16.1",
40-
"@typescript-eslint/parser": "^7.16.1",
41-
"eslint": "^8.57.0",
39+
"@typescript-eslint/eslint-plugin": "^7.13.1",
40+
"@typescript-eslint/parser": "^7.13.1",
41+
"eslint": "^7.22.0",
42+
"eslint-loader": "^4.0.2",
4243
"typescript": "^5.5.3",
4344
"vite": "^4.5.0",
4445
"vite-plugin-css-injected-by-js": "^3.3.0",

tsconfig.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
{
22
"compilerOptions": {
33
/* Language and Environment */
4-
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
4+
"target": "es2020" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
55
/* Modules */
66
"module": "CommonJS" /* Specify what module code is generated. */,
77
"typeRoots": [
8-
"./node_modules/@types",
9-
"./types"
8+
"./node_modules/@types"
109
] /* Specify multiple folders that act like './node_modules/@types'. */,
11-
/* Interop Constraints */
12-
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
1310
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
1411
/* Type Checking */
1512
"strict": true /* Enable all strict type-checking options. */
1613
},
17-
"include": ["src/*", "src/types/**/*"]
14+
"include": ["src/*"]
1815
}

0 commit comments

Comments
 (0)