我有 git 操作来运行 prettier(代码格式化程序)。下面是format.ymlgit操作的文件。
name: Format code with prettier
on:
push:
branches-ignore:
- master
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# Install NPM dependencies, cache them correctly
- name: Run prettier
run: |
npm ci
npm run prettier-check
Run Code Online (Sandbox Code Playgroud)
下面列出了我收到的错误。
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old …Run Code Online (Sandbox Code Playgroud)