First pass #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for all branches and tags | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 9 | |
| run_install: false | |
| - name: Use Node.js 20 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| cache: "pnpm" | |
| - name: Set internal registry config | |
| run: | | |
| pnpm config set "//pkgs.dev.azure.com/bentleycs/_packaging/Packages/npm/registry/:username" "bentleycs" | |
| pnpm config set "//pkgs.dev.azure.com/bentleycs/_packaging/Packages/npm/registry/:_password" "${{ secrets.AZURE_ARTIFACTS_PAT }}" | |
| pnpm config set "//pkgs.dev.azure.com/bentleycs/_packaging/Packages/npm/registry/:email" "npm requires email to be set but doesn't use the value" | |
| pnpm config set "//pkgs.dev.azure.com/bentleycs/_packaging/Packages/npm/:username" "bentleycs" | |
| pnpm config set "//pkgs.dev.azure.com/bentleycs/_packaging/Packages/npm/:_password" "${{ secrets.AZURE_ARTIFACTS_PAT }}" | |
| pnpm config set "//pkgs.dev.azure.com/bentleycs/_packaging/Packages/npm/:email" "npm requires email to be set but doesn't use the value" | |
| env: | |
| AZURE_ARTIFACTS_PAT: ${{ secrets.NPM_PACKAGE_PUBLISH_BENTLEYCS }} | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Run Unit Tests | |
| run: pnpm test |