diff --git a/.editorconfig b/.editorconfig
index 84b8a66..715b66a 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,10 +1,15 @@
-# top-most EditorConfig file
-root = true
-
-[*]
-charset = utf-8
-end_of_line = lf
-insert_final_newline = true
-indent_style = tab
-indent_size = 4
-tab_width = 4
+# top-most EditorConfig file
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+indent_size = 4
+tab_width = 4
+
+[*.yml]
+indent_style = space
+indent_size = 2
+tab_width = 2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6b859d0..cb40f89 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,34 +1,34 @@
name: CI
on:
- push:
- branches: [master]
- pull_request:
- branches: [master]
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
jobs:
- build:
- runs-on: ubuntu-latest
+ build:
+ runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: [18.x]
+ strategy:
+ matrix:
+ node-version: [18.x]
- steps:
- - uses: actions/checkout@v3
+ steps:
+ - uses: actions/checkout@v3
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v3
- with:
- node-version: ${{ matrix.node-version }}
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node-version }}
- - name: Setup pnpm
- uses: pnpm/action-setup@v2.2.4
- with:
- version: latest
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v2.2.4
+ with:
+ version: latest
- - name: Install dependencies
- run: pnpm install
+ - name: Install dependencies
+ run: pnpm install
- - name: Build
- run: pnpm build
+ - name: Build
+ run: pnpm build
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..e2ed28a
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,46 @@
+name: Release
+
+on:
+ push:
+ tags:
+ - "*"
+
+jobs:
+ tagged-release:
+ name: "Tagged Release"
+ runs-on: "ubuntu-latest"
+
+ strategy:
+ matrix:
+ node-version: [18.x]
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node-version }}
+
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v2.2.4
+ with:
+ version: latest
+
+ - name: Install dependencies
+ run: pnpm install
+
+ - name: Ensure version
+ run: pnpm version
+
+ - name: Build
+ run: pnpm build
+
+ - name: Create a release
+ uses: "marvinpinto/action-automatic-releases@latest"
+ with:
+ repo_token: "${{ secrets.GITHUB_TOKEN }}"
+ prerelease: false
+ files: |
+ ./main.js
+ ./manifest.json
diff --git a/README.md b/README.md
index 755b3eb..8bdb399 100644
--- a/README.md
+++ b/README.md
@@ -18,14 +18,6 @@ Replaces the default [Obsidian](https://obsidian.md/) caret with a smooth and ro