JS #10
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: JS | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| checks: write | |
| contents: write | |
| packages: read | |
| actions: write | |
| jobs: | |
| sync-and-build: | |
| runs-on: ubuntu-latest | |
| name: Sync fork and Run build | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup PSE | |
| uses: invisirisk/pse-action@dev-test | |
| with: | |
| api_url: "https://app.stage.invisirisk.com" | |
| app_token: ${{ secrets.IR_API_KEY_L_STAGE }} | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "22.11.0" | |
| - name: install yarn | |
| run: npm install -g yarn@1.22.22 | |
| - name: Install dependencies with Yarn | |
| run: yarn install | |
| - name: Cleanup PSE | |
| if: always() | |
| uses: invisirisk/pse-action@dev-test | |
| with: | |
| cleanup: "true" | |
| gather_analytics: | |
| runs-on: ubuntu-latest | |
| name: Gather Analytics | |
| needs: sync-and-build | |
| if: always() | |
| steps: | |
| - name: Gather Status | |
| uses: invisirisk/pse-action@dev-test | |
| with: | |
| api_url: "https://app.stage.invisirisk.com" | |
| app_token: ${{ secrets.IR_API_KEY_L_STAGE }} | |
| send_job_status: "true" | |
| debug: "true" |