Bump axios from 1.17.0 to 1.18.0 (#482) #383
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: Build & Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: 'pages' | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| outputs: | |
| fullSemVer: ${{ steps.gitversion.outputs.fullSemVer }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install GitVersion | |
| uses: gittools/actions/gitversion/setup@v4.5.0 | |
| with: | |
| versionSpec: "6.0.5" | |
| - name: Determine Version | |
| id: gitversion | |
| uses: gittools/actions/gitversion/execute@v4.5.0 | |
| with: | |
| useConfigFile: true | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: build-output | |
| path: dist/ | |
| - name: Test | |
| run: npm test | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-results | |
| path: test-results.json | |
| deploy: | |
| name: Deploy GH Pages | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: build-output | |
| path: ./dist | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v6 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: './dist' | |
| - name: Deploy to GitHub Pages | |
| uses: actions/deploy-pages@v5 | |
| create_release: | |
| name: Create release | |
| needs: [build, deploy] | |
| runs-on: ubuntu-latest | |
| env: | |
| fullSemVer: ${{ needs.build.outputs.fullSemVer }} | |
| steps: | |
| - name: Create Release | |
| uses: ncipollo/release-action@v1.21.0 | |
| with: | |
| skipIfReleaseExists: true | |
| allowUpdates: false | |
| draft: false | |
| makeLatest: true | |
| tag: v${{ env.fullSemVer }} | |
| name: Release v${{ env.fullSemVer }} | |
| generateReleaseNotes: true | |
| body: Release ${{ env.fullSemVer }} of ${{ github.repository }} |