Skip to content

Commit

Permalink
chore: add packageManager field (#389)
Browse files Browse the repository at this point in the history
* chore: add `packageManager` field

to pin pnpm@7

* chore: upgrade pnpm 8

* ci: don't specify pnpm version

* ci: workflow variable updates

---------

Co-authored-by: Tom Meagher <[email protected]>
  • Loading branch information
sxzz and tmm authored Apr 19, 2023
1 parent 5c07da4 commit f6a04b8
Show file tree
Hide file tree
Showing 9 changed files with 1,274 additions and 1,293 deletions.
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 @@ -114,10 +100,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 @@ -131,10 +113,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

2 comments on commit f6a04b8

@vercel
Copy link

@vercel vercel bot commented on f6a04b8 Apr 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on f6a04b8 Apr 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viem-playground – ./playgrounds/browser

viem-playground-git-main-wagmi-dev.vercel.app
viem-playground.vercel.app
viem-playground-wagmi-dev.vercel.app

Please sign in to comment.