ci: opt into Node.js 24 for GitHub Actions runners #2
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 Helm chart | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| paths: | |
| - 'charts/**' | |
| - '.github/workflows/helm.yml' | |
| workflow_dispatch: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| oci: | |
| name: Publish to GHCR (OCI) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: azure/setup-helm@v4 | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set chart version from git tag | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: | | |
| VERSION="${GITHUB_REF_NAME#v}" | |
| sed -i "s/^version:.*/version: ${VERSION}/" charts/envoy-router/Chart.yaml | |
| sed -i "s/^appVersion:.*/appVersion: \"${GITHUB_REF_NAME}\"/" charts/envoy-router/Chart.yaml | |
| - name: Package and push | |
| run: | | |
| helm package charts/envoy-router --destination /tmp/helm | |
| for tgz in /tmp/helm/envoy-router-*.tgz; do | |
| helm push "$tgz" oci://ghcr.io/${{ github.repository_owner }}/charts | |
| done |