Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/setup_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
workflow_call:
inputs:
node-version:
required: true
required: false
default: '24' # >= 24 required for OIDC token support
type: string
npm-version:
required: true
required: false
default: '11.9.0' # >= v11.5.1 required for OIDC token support
type: string

Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/setup_yarn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Setup Yarn

on:
workflow_call:
inputs:
node-version:
required: false
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a good choice, we should probably make node-version and npm-version inputs in setup_npm.yml also not required

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll tack that on this PR

default: '24'
type: string
yarn-version:
required: false
default: '1.22.22'
type: string

jobs:
setup:
name: Setup Yarn
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 #v6.2.0
with:
node-version: ${{ inputs.node-version }}
cache: "yarn"
- name: Install yarn at specific version
run: npm install -g yarn@${{ inputs.yarn-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile #--frozen-lockfile ensures that the exact versions in yarn.lock are installed