Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From volta to corepack #1013

Merged
merged 3 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'Setup'
inputs:
with-node-version:
description: 'Specific node version'
required: false
runs:
using: 'composite'
steps:
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
node-version-file: '.node-version'
cache: 'pnpm'
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
# necessary for publish
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm install
shell: bash

- name: Build package
run: pnpm build
shell: bash
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: wyvox/action@v1
- run: pnpm build
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- run: pnpm lint

test:
Expand All @@ -25,7 +26,9 @@ jobs:

# needs: build
steps:
- uses: wyvox/action@v1
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}
- run: pnpm build
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: wyvox/action@v1
- run: pnpm build
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Collect Coverage and Submit to CodeClimate
uses: paambaati/codeclimate-action@v8.0.0
env:
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@vitest/ui": "^2.0.0",
"concurrently": "^8.2.0",
"release-it": "^17.0.1",
"turbo": "^1.10.14",
"turbo": "^2.0.11",
"typedoc": "^0.25.7",
"typedoc-plugin-markdown": "^4.0.0-next.42",
"typedoc-vitepress-theme": "^1.0.0-next.7",
Expand All @@ -41,16 +41,13 @@
"vitepress-plugin-mermaid": "^2.0.16",
"vue": "^3.4.3"
},
"volta": {
"node": "20.16.0"
},
"packageManager": "pnpm@9.6.0",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search",
"vite-plugin-md"
]
}
},
"version": "0.2.2"
}
}
3 changes: 0 additions & 3 deletions packages/@theemo/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,5 @@
"tsup": "^8.0.0",
"typescript": "^5.2.2",
"vitest": "^2.0.0"
},
"volta": {
"extends": "../../../package.json"
}
}
3 changes: 0 additions & 3 deletions packages/@theemo/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,5 @@
"tsup": "^8.0.0",
"typescript": "^5.2.2",
"vitest": "^2.0.0"
},
"volta": {
"extends": "../../../package.json"
}
}
3 changes: 0 additions & 3 deletions packages/@theemo/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,5 @@
"tsup": "^8.0.0",
"typescript": "^5.2.2",
"vitest": "^2.0.0"
},
"volta": {
"extends": "../../../package.json"
}
}
3 changes: 0 additions & 3 deletions packages/@theemo/figma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,5 @@
"tsup": "^8.0.0",
"typescript": "^5.2.2",
"vitest": "^2.0.0"
},
"volta": {
"extends": "../../../package.json"
}
}
3 changes: 0 additions & 3 deletions packages/@theemo/style-dictionary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,5 @@
"tsup": "^8.0.0",
"typescript": "^5.2.2",
"vitest": "^2.0.0"
},
"volta": {
"extends": "../../../package.json"
}
}
3 changes: 0 additions & 3 deletions packages/@theemo/sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,5 @@
"tsup": "^8.0.0",
"typescript": "^5.2.2",
"vitest": "^2.0.0"
},
"volta": {
"extends": "../../../package.json"
}
}
3 changes: 0 additions & 3 deletions packages/@theemo/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,5 @@
"tsup": "^8.0.0",
"typescript": "^5.2.2",
"vitest": "^2.0.0"
},
"volta": {
"extends": "../../../package.json"
}
}
Loading
Loading