Job/jobbase unification test fixtures (#177) #36
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: Arena Server - Bump Version and Publish to GitHub NPM | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| paths-ignore: | |
| - 'package.json' | |
| jobs: | |
| publish-new-version: | |
| runs-on: ubuntu-latest | |
| env: | |
| NPM_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.ACCESS_TOKEN }} | |
| - name: Temporarily disable "include administrators" branch protection | |
| uses: benjefferies/branch-protection-bot@master | |
| if: always() | |
| with: | |
| access_token: ${{ secrets.ACCESS_TOKEN }} | |
| - name: 'Automated Version Bump' | |
| uses: 'phips28/gh-action-bump-version@master' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
| with: | |
| tag-prefix: 'v' | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| registry-url: https://npm.pkg.github.com/ | |
| scope: '@openforis' | |
| # ----------------------------------------------- | |
| # This step calls the composite action | |
| # to create the `.yarnrc.yml` in the workflow | |
| - name: Setup .yarnrc.yml | |
| uses: ./.github/actions/setup-yarnrc | |
| with: | |
| NPM_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
| # ----------------------------------------------- | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - run: yarn build | |
| - run: yarn npm publish | |
| - name: Enable "include administrators" branch protection | |
| uses: benjefferies/branch-protection-bot@master | |
| if: always() # Force to always run this step to ensure "include administrators" is always turned back on | |
| with: | |
| access_token: ${{ secrets.ACCESS_TOKEN }} | |
| owner: openforis | |
| repo: arena-server |