chore(lambda): bump nx from 20.1.3 to 20.3.1 in /lambdas (#4358) #2201
This file contains 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 build | |
on: | |
push: | |
branches: | |
- main | |
- v1 | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
actions: write | |
id-token: write | |
attestations: write | |
steps: | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version: 22 | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Build dist | |
working-directory: lambdas | |
run: yarn install --frozen-lockfile && yarn run test && yarn dist | |
- name: Get installation token | |
uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1 | |
id: token | |
with: | |
app-id: ${{ vars.RELEASER_APP_ID }} | |
private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }} | |
- name: Extract branch name | |
id: branch | |
shell: bash | |
run: echo "name=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT | |
- name: Release | |
id: release | |
uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3 | |
with: | |
target-branch: ${{ steps.branch.outputs.name }} | |
release-type: terraform-module | |
token: ${{ steps.token.outputs.token }} | |
- name: Attest | |
if: ${{ steps.release.outputs.releases_created == 'true' }} | |
id: attest | |
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0 | |
with: | |
subject-path: '${{ github.workspace }}/lambdas/functions/**/*.zip' | |
- name: Update release notes with attestation | |
if: ${{ steps.release.outputs.releases_created == 'true' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release view ${{ github.event.inputs.version }} --json body -q '.body' > new-release-notes.md | |
echo "## Attestation" >> new-release-notes.md | |
echo "Attestation url: ${{ steps.attest.outputs.attestation-url }}" >> new-release-notes.md | |
echo "Verify the artifacts by running \`gh attest verify <name_of_artifact> --repo ${{ github.repository }}\`" >> new-release-notes.md | |
gh release edit ${{ steps.release.outputs.tag_name }} -F new-release-notes.md -t ${{ steps.release.outputs.tag_name }} | |
- name: Upload release assets | |
if: ${{ steps.release.outputs.releases_created == 'true' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
for f in $(find . -name '*.zip'); do | |
gh release upload ${{ steps.release.outputs.tag_name }} $f | |
done |