fix: remove "tmp" dependency #784
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
| on: | |
| push: | |
| branches: | |
| - main | |
| - candidate-* | |
| pull_request: | |
| branches: | |
| - maqin | |
| - candidate-* | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| name: PR Test and Release | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Sources | |
| uses: actions/checkout@v4 | |
| - name: Initialize Release Please | |
| id: release | |
| uses: googleapis/release-please-action@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| target-branch: ${{ github.ref_name }} | |
| config-file: release-please-config.json | |
| manifest-file: .release-please-manifest.json | |
| - name: Install NodeJS | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| registry-url: "https://registry.npmjs.org" | |
| scope: "@hpcc-js" | |
| - name: Install Dependencies | |
| run: | | |
| npm ci | |
| - name: Lint | |
| run: | | |
| npm run lint | |
| - name: Build | |
| run: | | |
| npm run build | |
| - name: Install Test Dependencies | |
| if: ${{ github.event_name == 'pull_request' }} | |
| run: | | |
| sudo apt-get update | |
| sudo npx -y playwright install chromium --with-deps | |
| npx -y playwright install chromium | |
| wget https://github.com/hpcc-systems/HPCC-Platform/releases/download/community_9.6.50-1/hpccsystems-platform-community_9.6.50-1jammy_amd64_withsymbols.deb | |
| - name: Install HPCC Platform | |
| if: ${{ github.event_name == 'pull_request' }} | |
| continue-on-error: true | |
| run: | | |
| sudo apt install -f ./hpccsystems-platform-community_9.6.50-1jammy_amd64_withsymbols.deb | |
| sudo /etc/init.d/hpcc-init start | |
| - name: Test | |
| if: ${{ github.event_name == 'pull_request' }} | |
| env: | |
| CI: true | |
| run: | | |
| npm run test | |
| npm run test-browser-esm | |
| npm run test-browser-umd | |
| npm run test-node-esm | |
| npm run test-node-cjs | |
| - name: push stamped release | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: | | |
| git config user.name github-actions[bot] | |
| git config user.email 4104672+github-actions[bot]@users.noreply.github.com | |
| git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/yargs/yargs.git" | |
| git commit -a -m 'chore: stamp files for release' | |
| git push origin | |
| - name: Publish | |
| if: ${{ steps.release.outputs.release_created }} | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
| run: | | |
| npm run publish | |
| - name: Upload error logs | |
| if: ${{ failure() || cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: all-logs | |
| path: ./**/*.log |