Include parent component #72
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: npm test and release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| pull_request: | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [windows-latest, windows-11-arm, macos-latest, macos-15-intel, ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm] | |
| node-version: ['20.x', '24.x', '25.x'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '^1.25.6' | |
| - run: | | |
| npm ci | |
| npm run prepare | |
| npm test | |
| npm-publish: | |
| if: startsWith(github.ref, 'refs/tags/') | |
| needs: test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '25.x' | |
| registry-url: https://registry.npmjs.org/ | |
| scope: '@appthreat' | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '^1.25.6' | |
| - run: | | |
| npm ci | |
| npm run prepare | |
| npm test | |
| npm publish --access=public |