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

chore: add packageManager field #389

Merged
merged 4 commits into from
Apr 19, 2023
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
9 changes: 4 additions & 5 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: ${{ matrix.pnpm-version }}
- name: Set up Node ${{ matrix.node-version }}
- name: Set up pnpm
uses: pnpm/[email protected]
- name: Set up node@18
uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
node-version: 18
- name: Cache pnpm
uses: actions/cache@v3
with:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ jobs:
install:
name: Install
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand All @@ -25,8 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
transport-mode: ['http', 'webSocket']
steps:
- uses: actions/checkout@v3
- name: Setup
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ jobs:
install:
name: Install
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand All @@ -26,10 +22,6 @@ jobs:
name: Lint
needs: install
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand All @@ -56,10 +48,6 @@ jobs:
name: Build
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand All @@ -73,8 +61,6 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
shard: [1, 2, 3]
total-shards: [3]
transport-mode: ['http', 'webSocket']
Expand Down Expand Up @@ -109,10 +95,6 @@ jobs:
name: Test Types
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand All @@ -126,10 +108,6 @@ jobs:
name: Benchmark
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,17 @@ jobs:
build_and_publish:
name: Release (canary)
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/[email protected]
with:
version: ${{ matrix.pnpm-version }}
- name: Set up Node ${{ matrix.node-version }}
- name: Set up pnpm
uses: pnpm/[email protected]
- name: Set up node@18
uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: pnpm i --ignore-scripts
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,20 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
steps:
- uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- uses: pnpm/[email protected]
with:
version: ${{ matrix.pnpm-version }}
- name: Set up Node ${{ matrix.node-version }}
- name: Set up pnpm
uses: pnpm/[email protected]
- name: Set up node@18
uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: pnpm i --ignore-scripts

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ jobs:
build:
name: Compressed Size
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
steps:
- uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
- uses: preactjs/compressed-size-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
repo-token: "${{ secrets.GITHUB_TOKEN }}"
13 changes: 4 additions & 9 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,20 @@ jobs:
release:
name: Publish Snapshot
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [7]
steps:
- uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- uses: pnpm/[email protected]
with:
version: ${{ matrix.pnpm-version }}
- name: Set up Node ${{ matrix.node-version }}
- name: Set up pnpm
uses: pnpm/[email protected]
- name: Set up node@18
uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
node-version: 18

- name: Install Dependencies
run: pnpm i --ignore-scripts
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@
"simple-git-hooks": {
"pre-commit": "pnpm format && pnpm lint:fix"
},
"packageManager": "[email protected]",
"pnpm": {
"overrides": {
"viem": "workspace:*"
Expand All @@ -215,4 +216,4 @@
]
}
}
}
}
Loading