[APPEX-351] Migrate to granular NPM token (#112) #128
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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - v1.X | |
| pull_request: | |
| branches: | |
| - main | |
| - v1.X | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| run-build: | |
| name: Run build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: write | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 | |
| with: | |
| egress-policy: audit | |
| - name: Check out git repository | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3 | |
| with: | |
| node-version: lts/* | |
| cache: "yarn" | |
| - name: Install yarn dependencies | |
| run: yarn install | |
| - name: Build | |
| run: yarn build |