chore(deps): bump axios from 1.13.5 to 1.13.6 (#334) #675
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: π§ͺ Test and π Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - beta | |
| pull_request: {} | |
| workflow_dispatch: {} | |
| jobs: | |
| test-and-release: | |
| runs-on: ubuntu-latest | |
| if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| # Necessary for semantic-release | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| # Necessary for npm publish --provenance | |
| # See https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow | |
| id-token: write | |
| packages: write | |
| steps: | |
| - name: π₯ Checkout repository | |
| uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # main | |
| - name: π’ Setup Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # main | |
| with: | |
| node-version-file: ".tool-versions" | |
| cache: "npm" | |
| - name: π Cache node_modules | |
| id: cache-node_modules | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # main | |
| with: | |
| path: "**/node_modules" | |
| key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| - name: π Cache .eslintcache | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # main | |
| with: | |
| path: .eslintcache | |
| key: eslintcache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| - name: π Install dependencies | |
| if: steps.cache-node_modules.outputs.cache-hit != 'true' | |
| run: | | |
| npm ci --ignore-scripts --prefer-offline --no-audit | |
| - name: π§ͺ Run tests | |
| env: | |
| CI: true | |
| run: | | |
| npm test | |
| - name: π§ͺ Run integration test | |
| if: "github.event_name == 'workflow_dispatch'" | |
| run: | | |
| npm run integration-test | |
| env: | |
| CLOCKODO_USER: ${{ secrets.CLOCKODO_USER }} | |
| CLOCKODO_API_KEY: ${{ secrets.CLOCKODO_API_KEY }} | |
| - name: β¬οΈ Upload coverage report | |
| uses: coverallsapp/github-action@0a51d2e0b5417d06e4ecceb534aec87defc53926 # main | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: π Release preview | |
| if: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/beta' }} | |
| # Call to npm publish --dry-run is currently necessary, see https://github.com/stackblitz-labs/pkg.pr.new/issues/320 | |
| run: | | |
| npm publish --dry-run --tag test-release | |
| npx pkg-pr-new publish | |
| - name: π Release on npm and jsr | |
| if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Fetch the last 30 commits to ensure we have a complete CHANGELOG.md | |
| # See https://github.com/peerigon/template-public-package/issues/2 | |
| run: | | |
| git fetch --depth=30 | |
| npm run release |