-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
A warnings returned while the action is run will cause the workflow to error.
Action version:
v2.4.1
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
Node 16.13.0 using yarn
Repro steps:
Workflow.yml
- name: Setup Node.js
uses: actions/setup-node@v2.4.1
with:
node-version: '16'
cache: 'yarn'
cache-dependency-path: yarn.lockThe repository is also available here.
Expected behaviour:
Node gets setup correctly, and the rest of the workflow continues.
Actual behavior:
It fails due to a warning about the license field missing in the package.json. The exact same config seems to be working fine in this repo however, which is pretty bizarre.
Run actions/setup-node@v2.4.1
with:
node-version: 16
cache: yarn
cache-dependency-path: yarn.lock
always-auth: false
check-latest: false
token: ***
env:
SHA: 08a818
Attempting to download 16...
Acquiring 16.13.0 - x64 from https://github.com/actions/node-versions/releases/download/16.13.0-1386584131/node-16.13.0-linux-x64.tar.gz
Extracting ...
/usr/bin/tar xz --strip 1 --warning=no-unknown-keyword -C /home/runner/work/_temp/25fbe9eb-9f33-4e66-a470-afcca2472a62 -f /home/runner/work/_temp/3bd3f952-6099-4d9e-9a97-db484619b083
Adding to the cache ...
Done
/usr/local/bin/yarn --version
1.22.17
/usr/local/bin/yarn cache dir
warning package.json: No license field
/home/runner/.cache/yarn/v6
Error: warning package.json: No license field
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working