|
| 1 | +name: Node |
| 2 | + |
| 3 | +concurrency: |
| 4 | + group: Node-${{ github.workflow }}-${{ github.ref }} |
| 5 | + cancel-in-progress: true |
| 6 | + |
| 7 | +permissions: |
| 8 | + security-events: write |
| 9 | + contents: write |
| 10 | + pull-requests: write |
| 11 | + |
| 12 | +on: |
| 13 | + workflow_dispatch: |
| 14 | + push: |
| 15 | + branches: [Current] |
| 16 | + pull_request: |
| 17 | + branches: [Current] |
| 18 | + workflow_call: |
| 19 | + |
| 20 | +jobs: |
| 21 | + Pre-Publish: |
| 22 | + runs-on: ubuntu-latest |
| 23 | + |
| 24 | + env: |
| 25 | + ADBLOCK: true |
| 26 | + ASTRO_TELEMETRY_DISABLED: 1 |
| 27 | + AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 |
| 28 | + AZURE_CORE_COLLECT_TELEMETRY: 0 |
| 29 | + CHOOSENIM_NO_ANALYTICS: 1 |
| 30 | + DIEZ_DO_NOT_TRACK: 1 |
| 31 | + DOTNET_CLI_TELEMETRY_OPTOUT: 1 |
| 32 | + DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 |
| 33 | + DO_NOT_TRACK: 1 |
| 34 | + ET_NO_TELEMETRY: 1 |
| 35 | + GATSBY_TELEMETRY_DISABLED: 1 |
| 36 | + GATSBY_TELEMETRY_OPTOUT: 1 |
| 37 | + GATSBY_TELEMETRY_OPT_OUT: 1 |
| 38 | + GRIT_TELEMETRY_DISABLED: 1 |
| 39 | + HASURA_GRAPHQL_ENABLE_TELEMETRY: false |
| 40 | + HINT_TELEMETRY: off |
| 41 | + HOMEBREW_NO_ANALYTICS: 1 |
| 42 | + INFLUXD_REPORTING_DISABLED: true |
| 43 | + ITERATIVE_DO_NOT_TRACK: 1 |
| 44 | + NEXT_TELEMETRY_DEBUG: 1 |
| 45 | + NEXT_TELEMETRY_DISABLED: 1 |
| 46 | + NG_CLI_ANALYTICS: false |
| 47 | + NUXT_TELEMETRY_DISABLED: 1 |
| 48 | + PIN_DO_NOT_TRACK: 1 |
| 49 | + POWERSHELL_TELEMETRY_OPTOUT: 1 |
| 50 | + SAM_CLI_TELEMETRY: 0 |
| 51 | + STNOUPGRADE: 1 |
| 52 | + STRIPE_CLI_TELEMETRY_OPTOUT: 1 |
| 53 | + TELEMETRY_DISABLED: 1 |
| 54 | + |
| 55 | + strategy: |
| 56 | + matrix: |
| 57 | + node-version: [18, 19, 20] |
| 58 | + |
| 59 | + steps: |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + with: |
| 64 | + version: 8.15.5 |
| 65 | + run_install: | |
| 66 | + - recursive: true |
| 67 | + args: [ |
| 68 | + --link-workspace-packages=true, |
| 69 | + --lockfile-only, |
| 70 | + --prefer-frozen-lockfile=false, |
| 71 | + --shamefully-hoist=false, |
| 72 | + --shared-workspace-lockfile=true, |
| 73 | + --strict-peer-dependencies=false, |
| 74 | + --unsafe-perm=true |
| 75 | + ] |
| 76 | +
|
| 77 | + |
| 78 | + with: |
| 79 | + node-version: ${{ matrix.node-version }} |
| 80 | + cache: "pnpm" |
| 81 | + cache-dependency-path: ./pnpm-lock.yaml |
| 82 | + |
| 83 | + - run: pnpm install |
| 84 | + working-directory: . |
| 85 | + |
| 86 | + - run: pnpm run build |
| 87 | + working-directory: . |
| 88 | + |
| 89 | + |
| 90 | + with: |
| 91 | + name: .-Node-${{ matrix.node-version }}-Target |
| 92 | + path: ./Target |
| 93 | + |
| 94 | + - run: pnpm run prepublishOnly |
| 95 | + working-directory: . |
| 96 | + |
| 97 | + |
| 98 | + with: |
| 99 | + name: .-Node-${{ matrix.node-version }}-Target |
| 100 | + path: ./Target |
0 commit comments