Skip to content

squash!

squash! #15

Workflow file for this run

name: Node
concurrency:
group: Node-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
security-events: write
contents: write
pull-requests: write
on:
workflow_dispatch:
push:
branches: [Current]
pull_request:
branches: [Current]
workflow_call:
jobs:
Pre-Publish:
runs-on: ubuntu-latest
env:
ADBLOCK: true
ASTRO_TELEMETRY_DISABLED: 1
AUTOMATEDLAB_TELEMETRY_OPTOUT: 1
AZURE_CORE_COLLECT_TELEMETRY: 0
CHOOSENIM_NO_ANALYTICS: 1
DIEZ_DO_NOT_TRACK: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1
DO_NOT_TRACK: 1
ET_NO_TELEMETRY: 1
GATSBY_TELEMETRY_DISABLED: 1
GATSBY_TELEMETRY_OPTOUT: 1
GATSBY_TELEMETRY_OPT_OUT: 1
GRIT_TELEMETRY_DISABLED: 1
HASURA_GRAPHQL_ENABLE_TELEMETRY: false
HINT_TELEMETRY: off
HOMEBREW_NO_ANALYTICS: 1
INFLUXD_REPORTING_DISABLED: true
ITERATIVE_DO_NOT_TRACK: 1
NEXT_TELEMETRY_DEBUG: 1
NEXT_TELEMETRY_DISABLED: 1
NG_CLI_ANALYTICS: false
NUXT_TELEMETRY_DISABLED: 1
PIN_DO_NOT_TRACK: 1
POWERSHELL_TELEMETRY_OPTOUT: 1
SAM_CLI_TELEMETRY: 0
STNOUPGRADE: 1
STRIPE_CLI_TELEMETRY_OPTOUT: 1
TELEMETRY_DISABLED: 1
strategy:
matrix:
node-version: [18, 19, 20]
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
with:
version: 8.15.5
run_install: |
- recursive: true
args: [
--link-workspace-packages=true,
--lockfile-only,
--prefer-frozen-lockfile=false,
--shamefully-hoist=false,
--shared-workspace-lockfile=true,
--strict-peer-dependencies=false,
--unsafe-perm=true
]
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/bundled-dependencies/as-array-bundle-deps/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/bundled-dependencies/as-array-bundle-deps
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-bundled-dependencies-as-array-bundle-deps-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/bundled-dependencies/as-array-bundle-deps/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/bundled-dependencies/as-object/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/bundled-dependencies/as-object
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-bundled-dependencies-as-object-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/bundled-dependencies/as-object/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/bundled-dependencies/race-condition/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/bundled-dependencies/race-condition
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-bundled-dependencies-race-condition-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/bundled-dependencies/race-condition/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/empty/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/empty
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-empty-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/empty/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/internal-modules/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/internal-modules
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-internal-modules-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/internal-modules/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/missing-entrypoint/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/missing-entrypoint
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-missing-entrypoint-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/missing-entrypoint/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/monorepo/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/monorepo
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-monorepo-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/monorepo/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/monorepo/packages/nested-package/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/monorepo/packages/nested-package
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-monorepo-packages-nested-package-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/monorepo/packages/nested-package/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/no-unused-modules/binObject/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/no-unused-modules/binObject
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-no-unused-modules-binObject-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/no-unused-modules/binObject/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/no-unused-modules/browserObject/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/no-unused-modules/browserObject
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-no-unused-modules-browserObject-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/no-unused-modules/browserObject/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/no-unused-modules/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/no-unused-modules
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-no-unused-modules-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/no-unused-modules/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/no-unused-modules/privatePkg/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/no-unused-modules/privatePkg
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-no-unused-modules-privatePkg-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/no-unused-modules/privatePkg/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/order-redirect-scoped/module/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/order-redirect-scoped/module
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-order-redirect-scoped-module-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/order-redirect-scoped/module/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/order-redirect-scoped/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/order-redirect-scoped
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-order-redirect-scoped-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/order-redirect-scoped/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/order-redirect/module/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/order-redirect/module
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-order-redirect-module-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/order-redirect/module/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/order-redirect/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/order-redirect
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-order-redirect-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/order-redirect/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/package-named/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/package-named
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-package-named-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/package-named/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/package-scoped/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/package-scoped
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-package-scoped-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/package-scoped/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/package/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/package
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-package-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/package/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/symlinked-module/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/symlinked-module
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-symlinked-module-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/symlinked-module/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/with-flow-typed/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/with-flow-typed
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-with-flow-typed-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/with-flow-typed/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./crates/oxc_linter/fixtures/import/with-typescript-dev-dependencies/pnpm-lock.yaml
- run: pnpm install
working-directory: ./crates/oxc_linter/fixtures/import/with-typescript-dev-dependencies
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-crates-oxc_linter-fixtures-import-with-typescript-dev-dependencies-Node-${{ matrix.node-version }}-Target
path: ./crates/oxc_linter/fixtures/import/with-typescript-dev-dependencies/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./editors/vscode/pnpm-lock.yaml
- run: pnpm install
working-directory: ./editors/vscode
- run: pnpm run build
working-directory: .
- uses: actions/[email protected]
with:
name: .-editors-vscode-Node-${{ matrix.node-version }}-Target
path: ./editors/vscode/Target
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-editors-vscode-Node-${{ matrix.node-version }}-Target
path: ./editors/vscode/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./napi/parser/pnpm-lock.yaml
- run: pnpm install
working-directory: ./napi/parser
- run: pnpm run build
working-directory: .
- uses: actions/[email protected]
with:
name: .-napi-parser-Node-${{ matrix.node-version }}-Target
path: ./napi/parser/Target
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-napi-parser-Node-${{ matrix.node-version }}-Target
path: ./napi/parser/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./npm/oxc-parser/pnpm-lock.yaml
- run: pnpm install
working-directory: ./npm/oxc-parser
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-npm-oxc-parser-Node-${{ matrix.node-version }}-Target
path: ./npm/oxc-parser/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./npm/oxc/pnpm-lock.yaml
- run: pnpm install
working-directory: ./npm/oxc
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-npm-oxc-Node-${{ matrix.node-version }}-Target
path: ./npm/oxc/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./npm/oxlint/pnpm-lock.yaml
- run: pnpm install
working-directory: ./npm/oxlint
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-npm-oxlint-Node-${{ matrix.node-version }}-Target
path: ./npm/oxlint/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./tasks/benchmark/codspeed/pnpm-lock.yaml
- run: pnpm install
working-directory: ./tasks/benchmark/codspeed
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-tasks-benchmark-codspeed-Node-${{ matrix.node-version }}-Target
path: ./tasks/benchmark/codspeed/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./tasks/coverage/Source/runtime/pnpm-lock.yaml
- run: pnpm install
working-directory: ./tasks/coverage/Source/runtime
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-tasks-coverage-Source-runtime-Node-${{ matrix.node-version }}-Target
path: ./tasks/coverage/Source/runtime/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./tasks/lint_rules/pnpm-lock.yaml
- run: pnpm install
working-directory: ./tasks/lint_rules
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-tasks-lint_rules-Node-${{ matrix.node-version }}-Target
path: ./tasks/lint_rules/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./wasm/parser/pnpm-lock.yaml
- run: pnpm install
working-directory: ./wasm/parser
- run: pnpm run build
working-directory: .
- uses: actions/[email protected]
with:
name: .-wasm-parser-Node-${{ matrix.node-version }}-Target
path: ./wasm/parser/Target
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-wasm-parser-Node-${{ matrix.node-version }}-Target
path: ./wasm/parser/Target
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./website/pnpm-lock.yaml
- run: pnpm install
working-directory: ./website
- run: pnpm run build
working-directory: .
- uses: actions/[email protected]
with:
name: .-website-Node-${{ matrix.node-version }}-Target
path: ./website/Target
- run: pnpm run prepublishOnly
working-directory: .
- uses: actions/[email protected]
with:
name: .-website-Node-${{ matrix.node-version }}-Target
path: ./website/Target