Skip to content

Commit

Permalink
💚 asdf + corepack + .nvmrc #145
Browse files Browse the repository at this point in the history
  • Loading branch information
trydofor committed Jan 20, 2025
1 parent fa7b4eb commit 74286e6
Show file tree
Hide file tree
Showing 13 changed files with 2,069 additions and 2,390 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,21 @@ jobs:
with:
fetch-depth: 0

- name: Caching Toolchain
uses: actions/cache@v4
id: cache-sdk-repo
with:
path: |
~/.asdf/
~/.local/share/pnpm/store/
key: asdf-store-${{ runner.os }}
# https://pnpm.io/continuous-integration#github-actions
- name: Setup pnpm by packageManager
uses: pnpm/action-setup@v4

- name: Install Toolchain
uses: asdf-vm/actions/install@v3
- name: Setup nodejs by .nvmrc
uses: actions/setup-node@v4
with:
skip_install: ${{ steps.cache-sdk-repo.outputs.cache-hit == 'true' }}
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: Prepare Project
run: |
chmod a+x .changeset/*.sh
echo "install pnpm-hoist-layer to devDep"
pnpm -w i --no-frozen-lockfile --ignore-pnpmfile
pnpm -w i --no-frozen-lockfile
echo "reset the ci lockfile"
git restore pnpm-lock.yaml
echo "install all deps by lockfile"
Expand Down
6 changes: 0 additions & 6 deletions .npmrc

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.18.1
8 changes: 7 additions & 1 deletion .pnpmfile.cjs
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
module.exports = require('pnpm-hoist-layer');
const pnpmfile = {};
try {
pnpmfile.hooks = require('pnpm-hoist-layer').hooks;
} catch {
console.warn('⚠️ "pnpm-hoist-layer" not found, retry after installing.');
}
module.exports = pnpmfile;
2 changes: 0 additions & 2 deletions .tool-versions

This file was deleted.

1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
"vitest.explorer",
"zt5.http-server",
"unional.vscode-sort-package-json",
"antfu.file-nesting",
]
}
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"cSpell.allowCompoundWords": true,
"cSpell.words": [
"antfu",
"asdfrc",
"composable",
"Datetime",
"dev",
Expand All @@ -27,6 +28,7 @@
"nuxi",
"nuxt",
"nuxtjs",
"nvmrc",
"ofetch",
"pinia",
"pnpmfile",
Expand Down
Loading

0 comments on commit 74286e6

Please sign in to comment.