Skip to content

Commit

Permalink
Run custom hook for corepack enable
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDiekmann committed Mar 4, 2025
1 parent 558e033 commit c2f8a1b
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion .config/mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
_.file = [".env", ".env.local"]

[tools]
node = "22.14.0"
node = { version = "22.14.0", postinstall = "corepack enable" }
'npm:turbo' = "2.4.4"

cargo-binstall = "1.10.22"
Expand Down
2 changes: 0 additions & 2 deletions .github/actions/install-tools/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ runs:
install_args: --env ci --jobs 1
env:
MISE_VERBOSE: 1
MISE_NODE_COREPACK: 1
GITHUB_TOKEN: ${{ inputs.token }}

- name: Setup environment
shell: bash
run: |
# corepack enable
echo MISE_ENV=ci >> $GITHUB_ENV
echo PROTOC="$(mise which protoc)" >> $GITHUB_ENV
mise ls
Expand Down
1 change: 0 additions & 1 deletion apps/hash-ai-worker-ts/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
ENV MISE_DATA_DIR="/mise"
ENV MISE_CACHE_DIR="/mise/cache"
ENV MISE_INSTALL_PATH="/usr/local/bin/mise"
ENV MISE_NODE_COREPACK=1
ENV PATH="/mise/shims:$PATH"

COPY .config/mise /etc/mise
Expand Down
1 change: 0 additions & 1 deletion apps/hash-integration-worker/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
ENV MISE_DATA_DIR="/mise"
ENV MISE_CACHE_DIR="/mise/cache"
ENV MISE_INSTALL_PATH="/usr/local/bin/mise"
ENV MISE_NODE_COREPACK=1
ENV MISE_VERBOSE=1
ENV PATH="/mise/shims:$PATH"

Expand Down
8 changes: 0 additions & 8 deletions apps/hash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ See the [respective section in the parent README](../README.md#hash) for descrip

It's also possible to install them manually, use the correct versions for these tools as specified in `.config/mise`.

1. Enable [corepack](https://nodejs.org/api/corepack.html):

```sh
corepack enable
```

You might need to re-create your shell.

1. Install dependencies:

```sh
Expand Down
1 change: 0 additions & 1 deletion infra/docker/api/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
ENV MISE_DATA_DIR="/mise"
ENV MISE_CACHE_DIR="/mise/cache"
ENV MISE_INSTALL_PATH="/usr/local/bin/mise"
ENV MISE_NODE_COREPACK=1
ENV PATH="/mise/shims:$PATH"

COPY .config/mise /etc/mise
Expand Down

0 comments on commit c2f8a1b

Please sign in to comment.