fix: update CORS config to include write methods and wildcard headers #334
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
| name: 🚀 Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - main-* | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| # Update release PR | |
| release_please: | |
| name: Release Please | |
| runs-on: ${{ vars.RUNS_ON__AMD_XS || 'ubuntu-24.04' }} | |
| container: | |
| image: quay.io/vakamo/build-base:ubuntu-24-04 | |
| if: ${{ vars.RELEASE_PLEASE_ACTIVATED != '' }} | |
| outputs: | |
| releases_created: ${{ steps.release.outputs.releases_created }} | |
| tag_name: ${{ steps.release.outputs['tag_name'] }} | |
| major: ${{ steps.release.outputs['major'] }} | |
| minor: ${{ steps.release.outputs['minor'] }} | |
| patch: ${{ steps.release.outputs['patch'] }} | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| token: ${{ secrets.RELEASE_PLEASE_TOKEN }} | |
| config-file: release-please/release-please-config.json | |
| manifest-file: release-please/.release-please-manifest.json | |
| target-branch: ${{ vars.RELEASE_PLEASE_TARGET_BRANCH || 'main' }} | |
| build: | |
| name: Build | |
| runs-on: ${{ vars.RUNS_ON__AMD_S || 'ubuntu-24.04' }} | |
| container: | |
| image: quay.io/vakamo/build-base:ubuntu-24-04 | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v6 | |
| - name: Create Node Environment | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - name: Install Packages and Build Library | |
| run: | | |
| npm ci | |
| npm run build | |
| - name: Upload dist folder | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: dist | |
| if-no-files-found: error | |
| publish-build: | |
| name: Publish Build | |
| runs-on: ${{ vars.RUNS_ON__AMD_XS || 'ubuntu-24.04' }} | |
| container: | |
| image: quay.io/vakamo/build-base:ubuntu-24-04 | |
| needs: | |
| - build | |
| - release_please | |
| if: ${{ needs.release_please.outputs.releases_created == 'true' }} | |
| steps: | |
| - name: Download Artifacts | |
| uses: actions/download-artifact@v4 | |
| - name: Publish Release | |
| run: gh release edit ${{ needs.release_please.outputs.tag_name }} --draft=false --repo=${{ github.repository }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Add Artifacts to Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: artifact/dist/**/* | |
| tag_name: ${{ needs.release_please.outputs.tag_name }} |