This repository was archived by the owner on Nov 18, 2025. It is now read-only.
MINOR: labeling API on JPEG, PNG & PDF model (#870) #172
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: Javascript Api Client | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| jobs: | |
| test: | |
| runs-on: self-hosted | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "16" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run test | |
| run: npm test | |
| publish: | |
| runs-on: self-hosted | |
| needs: test | |
| if: contains(' | |
| refs/heads/master | |
| refs/heads/main' | |
| , github.ref) | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "16" | |
| - uses: actions/setup-python@v4 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build | |
| run: npm run build | |
| - name: Release | |
| run: npx semantic-release --extends ./config/release.config.js | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.REPOS_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |