Skip to content

Commit

Permalink
feat(yarn-install): add yarn-args input
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Oct 24, 2022
1 parent d892fdc commit 4cb7e27
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ For use with Yarn 1.
- uses: myparcelnl/actions/yarn-install@v2
with:
node-version: 16
yarn-args: --frozen-lockfile --ignore-scripts
```
##### Inputs

| required | name | description | Example | Default |
|----------|----------------|------------------------------------|--------------------------------------|---------|
| No | `node-version` | The Node.js version to use | `16` | `16` |
| No | `yarn-args` | Arguments to use with yarn install | `--frozen-lockfile --ignore-scripts` | ` ` |

#### yarn2-install

Expand Down
11 changes: 8 additions & 3 deletions yarn-install/action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Install yarn dependencies
description: Install yarn dependencies from scratch or from cache
name: 'Install yarn dependencies'
description: 'Install yarn dependencies from scratch or from cache'

inputs:
node-version:
description: 'The Node.js version to use'
default: '16'
required: false

yarn-args:
description: 'Arguments to use with yarn install'
default: '--frozen-lockfile'
required: false

runs:
using: composite
steps:
Expand All @@ -16,5 +21,5 @@ runs:
cache: 'yarn'

- name: 'Install yarn dependencies'
run: yarn install --frozen-lockfile
run: yarn install ${{ inputs.yarn-args }}
shell: bash

0 comments on commit 4cb7e27

Please sign in to comment.