Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

build: setup corepack for ci

Asuka109092c1d10e588
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index fe09da751..5f52eb56f 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -5,6 +5,6 @@ updates:
schedule:
interval: "weekly"
- package-ecosystem: "npm"
- directory: "/packages"
+ directory: "/"
schedule:
interval: "weekly"
diff --git a/.github/workflows/build_web.yml b/.github/workflows/build_web.yml
index d825c317d..3df131c7d 100644
--- a/.github/workflows/build_web.yml
+++ b/.github/workflows/build_web.yml
@@ -16,6 +16,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
+ - name: Enable Corepack
+ run: corepack enable
- name: Retrieve version after install
id: nodenv
run: echo "node-version=$(node -v | sed 's/^v//')" >> $GITHUB_OUTPUT
diff --git a/.github/workflows/package_vscode_plugin.yml b/.github/workflows/package_vscode_plugin.yml
index 9173d2d17..4dd8f3556 100644
--- a/.github/workflows/package_vscode_plugin.yml
+++ b/.github/workflows/package_vscode_plugin.yml
@@ -36,6 +36,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
+ - name: Enable Corepack
+ run: corepack enable
- name: Build harper-ls
uses: houseabsolute/actions-rust-cross@v1
with:
diff --git a/.github/workflows/package_wp_plugin.yml b/.github/workflows/package_wp_plugin.yml
index ab0f18890..2be5e5b7f 100644
--- a/.github/workflows/package_wp_plugin.yml
+++ b/.github/workflows/package_wp_plugin.yml
@@ -19,6 +19,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
+ - name: Enable Corepack
+ run: corepack enable
- name: Install `pandoc`
run: sudo apt-get update && sudo apt-get install pandoc -y
- name: Install `wasm-pack`
diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml
index b1c815909..c14928522 100644
--- a/.github/workflows/precommit.yml
+++ b/.github/workflows/precommit.yml
@@ -21,6 +21,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
+ - name: Enable Corepack
+ run: corepack enable
- name: Install `pandoc`
run: sudo apt-get update && sudo apt-get install pandoc -y
- name: Install `wasm-pack`
diff --git a/.github/workflows/release_vscode_plugin.yml b/.github/workflows/release_vscode_plugin.yml
index bdc9167da..3497fce4a 100644
--- a/.github/workflows/release_vscode_plugin.yml
+++ b/.github/workflows/release_vscode_plugin.yml
@@ -34,6 +34,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
+ - name: Enable Corepack
+ run: corepack enable
- name: Build harper-ls
uses: houseabsolute/actions-rust-cross@v1
with:
diff --git a/.github/workflows/release_wp_plugin.yml b/.github/workflows/release_wp_plugin.yml
index 51faa894e..62a37e934 100644
--- a/.github/workflows/release_wp_plugin.yml
+++ b/.github/workflows/release_wp_plugin.yml
@@ -17,6 +17,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
+ - name: Enable Corepack
+ run: corepack enable
- name: Install `pandoc`
run: sudo apt-get update && sudo apt-get install pandoc -y
- name: Install `wasm-pack`
diff --git a/justfile b/justfile
index a77c03b96..44de0b4cc 100644
--- a/justfile
+++ b/justfile
@@ -1,7 +1,7 @@
# Format entire project
format:
cargo fmt
- cd "{{justfile_directory()}}/packages"; pnpm check
+ pnpm check
# Build the WebAssembly for a specific target (usually either `web` or `bundler`)
build-wasm: