Merge branch 'main' into next
# Conflicts: # .eslintrc.cjs # .github/workflows/validate-vendors.yml # bin/prettier.js # package.json # scripts/build/bundler.mjs # scripts/build/config.mjs # scripts/build/esbuild-plugins/replace-module.mjs # scripts/build/esbuild-plugins/umd.mjs # scripts/bundle-eslint-config.cjs # scripts/vendors/README.md # scripts/vendors/bundle-vendors.mjs # scripts/vendors/utils.mjs # scripts/vendors/vendor-meta.json # src/cli/index.js # tests/integration/__tests__/early-exit.js # yarn.lock
This commit is contained in:
commit
bf98018486
16 files changed
+373
-345
No files matched your search
@@ -136,3 +136,28 @@ jobs:
|
||||
env:
|
||||
NODE_ENV: production
|
||||
PRETTIER_FALLBACK_RESOLVE: true
|
||||
|
||||
cli:
|
||||
name: CLI
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.4.0
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2.5.1
|
||||
with:
|
||||
node-version: "0.10.48"
|
||||
|
||||
- name: Download Artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: dist
|
||||
path: dist
|
||||
|
||||
- name: Validate Node.js Version
|
||||
run: node -v | grep "v0.10.48" || exit 1
|
||||
|
||||
- name: Run CLI on Node.js v0.10.48
|
||||
run: node dist/bin-prettier --version 2>&1 >/dev/null | grep "prettier requires at least version 10.13.0 of Node, please upgrade" || exit 1
|
||||
Reference in new issue
Block a user