Skip to content

Commit

Permalink
ci: workflow variable updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Apr 19, 2023
1 parent 221144b commit 27aacc2
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 45 deletions.
7 changes: 4 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- name: Set up Node ${{ matrix.node-version }}
- name: Set up pnpm
uses: pnpm/action-setup@v2
- 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
5 changes: 1 addition & 4 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
install:
name: Install
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand All @@ -24,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
transport-mode: ['http', 'webSocket']
steps:
- uses: actions/checkout@v3
- name: Setup
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
install:
name: Install
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand All @@ -25,9 +22,6 @@ jobs:
name: Lint
needs: install
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand All @@ -54,9 +48,6 @@ jobs:
name: Build
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand All @@ -70,7 +61,6 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
shard: [1, 2, 3]
total-shards: [3]
transport-mode: ['http', 'webSocket']
Expand Down Expand Up @@ -105,9 +95,6 @@ jobs:
name: Test Types
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand All @@ -121,9 +108,6 @@ jobs:
name: Benchmark
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@ jobs:
build_and_publish:
name: Release (canary)
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
- name: Set up Node ${{ matrix.node-version }}
- name: Set up pnpm
uses: pnpm/action-setup@v2
- 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
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,20 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
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/action-setup@v2
- name: Set up Node ${{ matrix.node-version }}
- name: Set up pnpm
uses: pnpm/action-setup@v2
- 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
3 changes: 0 additions & 3 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ jobs:
build:
name: Compressed Size
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- name: Setup
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,20 @@ jobs:
release:
name: Publish Snapshot
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
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/action-setup@v2
- name: Set up Node ${{ matrix.node-version }}
- name: Set up pnpm
uses: pnpm/action-setup@v2
- 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "viem",
"description": "TypeScript Interface for Ethereum",
"version": "0.3.3",
"packageManager": "[email protected]",
"scripts": {
"anvil": "dotenv -- sh -c 'anvil --fork-url $VITE_ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME'",
"bench": "vitest bench --no-threads",
Expand Down Expand Up @@ -203,6 +202,7 @@
"simple-git-hooks": {
"pre-commit": "pnpm format && pnpm lint:fix"
},
"packageManager": "[email protected]",
"pnpm": {
"overrides": {
"viem": "workspace:*"
Expand Down

0 comments on commit 27aacc2

Please sign in to comment.