Skip to content

Commit 01fb85d

Browse files
committed
chore: added lambda build and publish to snapshot and preview releases
1 parent 10b0c51 commit 01fb85d

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/release_preview.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,31 @@ jobs:
215215
type=raw,value=${{ needs.validate-and-prepare.outputs.docker-tag-base }}-${{ needs.validate-and-prepare.outputs.commit-sha }}
216216
type=sha
217217
218+
build-and-publish-lambdas:
219+
name: Build & Publish Preview Lambdas
220+
runs-on: blacksmith-4vcpu-ubuntu-2204
221+
needs: [validate-and-prepare, build-and-publish-npm]
222+
if: inputs.publish_target == 'npm-only' || inputs.publish_target == 'npm-and-ghcr'
223+
strategy:
224+
fail-fast: false
225+
matrix:
226+
lambda: [fallback-ensapi]
227+
steps:
228+
- name: Checkout repository
229+
uses: actions/checkout@v4
230+
with:
231+
fetch-depth: 1
232+
233+
- name: Build and Publish Lambda
234+
uses: ./.github/actions/build_and_publish_lambda
235+
with:
236+
name: ${{ matrix.lambda }}
237+
version: ${{ needs.validate-and-prepare.outputs.dist-tag }}
238+
218239
detect-pr-and-comment:
219240
name: Update PR Comment
220241
runs-on: blacksmith-4vcpu-ubuntu-2204
221-
needs: [validate-and-prepare, build-and-publish-npm, build-and-publish-ghcr]
242+
needs: [validate-and-prepare, build-and-publish-npm, build-and-publish-ghcr, build-lambdas]
222243
if: always() && needs.build-and-publish-npm.result == 'success'
223244
permissions:
224245
contents: read

.github/workflows/release_snapshot.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,24 @@ jobs:
123123
type=raw,value=next
124124
type=raw,value=${{ steps.snapshot-tag.outputs.tag }}
125125
type=sha
126+
127+
build-and-publish-lambdas:
128+
name: Build & Publish Snapshot Lambdas
129+
runs-on: blacksmith-4vcpu-ubuntu-2204
130+
if: github.repository == 'namehash/ensnode' && !contains(github.event.head_commit.message, 'changeset-release/main') && needs.snapshot.outputs.hasChanges == 'true'
131+
needs: [build-and-publish-npm]
132+
strategy:
133+
fail-fast: false
134+
matrix:
135+
lambda: [fallback-ensapi]
136+
steps:
137+
- name: Checkout repository
138+
uses: actions/checkout@v4
139+
with:
140+
fetch-depth: 1
141+
142+
- name: Build and Publish Lambda
143+
uses: ./.github/actions/build_and_publish_lambda
144+
with:
145+
name: ${{ matrix.lambda }}
146+
version: next

0 commit comments

Comments
 (0)