Skip to content

Migrate pnpm #2369

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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
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
29 changes: 27 additions & 2 deletions .github/workflows/chainlink-automation-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,40 @@ jobs:
contents: write
name: Check if chainlinnk automation config is up to date
runs-on: ubuntu-latest
env:
STORE_PATH: ~/.pnpm-store
defaults:
run:
working-directory: ./
steps:
- name: Checkout Repo
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Install Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: '20'

- name: Install pnpm
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: '10'
run_install: false

- name: Setup pnpm cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: npm i
run: pnpm install --frozen-lockfile

- name: Compare current config with the deployed one
run: npm run sync-chainlink-automation-config
run: pnpm run sync-chainlink-automation-config

- name: Check if new config file
id: compare_configs
run: |
Expand All @@ -32,6 +56,7 @@ jobs:
timestamp=$(date +%Y%m%d%H%M)
echo "{timestamp}={${timestamp}}" >> $GITHUB_OUTPUT
fi

- if: ${{ steps.compare_configs.outputs.createPR }}
id: chainlink_automation_config_pr
name: Create pull request
Expand Down
29 changes: 27 additions & 2 deletions .github/workflows/chains-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,40 @@ jobs:
contents: write
name: Check if chains metadata is up to date
runs-on: ubuntu-latest
env:
STORE_PATH: ~/.pnpm-store
defaults:
run:
working-directory: ./
steps:
- name: Checkout Repo
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Install Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: '20'

- name: Install pnpm
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: '10'
run_install: false

- name: Setup pnpm cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: npm i
run: pnpm install --frozen-lockfile

- name: Compare current chains metadata with the source
run: npm run compare-chains-metadata
run: pnpm run compare-chains-metadata

- name: Check if new chains metadata file
id: compare_chains
run: |
Expand All @@ -32,6 +56,7 @@ jobs:
timestamp=$(date +%Y%m%d%H%M)
echo "timestamp=${timestamp}" >> $GITHUB_OUTPUT
fi

- if: ${{ steps.compare_chains.outputs.createPR }}
id: chains_metadata_pr
name: Create pull request
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/external-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,36 @@ jobs:
check-external-links:
name: Check external links
runs-on: ubuntu-latest
env:
STORE_PATH: ~/.pnpm-store
defaults:
run:
working-directory: ./
steps:
- name: Checkout Repo
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Install Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: '20'

- name: Install pnpm
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: '10'
run_install: false

- name: Setup pnpm cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: npm i
run: pnpm install --frozen-lockfile

- name: Run external link checks
run: npm run linkcheck-external
run: pnpm run linkcheck-external
Loading
Loading