Skip to content

Commit 60f39e3

Browse files
author
Lucas McDonald
committed
m
1 parent 5b998e3 commit 60f39e3

File tree

1 file changed

+74
-4
lines changed

1 file changed

+74
-4
lines changed

.github/workflows/prod-release.yml

Lines changed: 74 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,16 +215,86 @@ jobs:
215215
run: |
216216
git config --global user.name "aws-crypto-tools-ci-bot"
217217
git config --global user.email "[email protected]"
218-
git checkout $BRANCH
218+
# TODO: Uncomment when adding publish step
219+
# git checkout $BRANCH # Commented out to test on current branch
219220
220-
- name: Version packages
221+
- name: Version packages (dry run - no push)
221222
run: |
222-
npx lerna version --conventional-commits --git-remote origin --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
223+
# For testing: no push to avoid modifying master branch
224+
npx lerna version --conventional-commits --no-push --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
225+
# TODO: uncomment line below and remove line above when adding publish step
226+
# npx lerna version --conventional-commits --git-remote origin --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
223227
git log -n 1
224228
225229
# Once semantic versioning has run and bumped versions, publish to npm
226230
# TODO: Publish step that doesn't use OTP but instead follows
227231
# https://docs.npmjs.com/trusted-publishers
228232

229233
# Once publishing is complete, validate that the published packages are useable
230-
# TODO: Publish step based on CodeBuild jobs
234+
validate-nodejs:
235+
runs-on: ubuntu-latest
236+
# TODO: Uncomment when adding publish step
237+
# needs: [publish]
238+
steps:
239+
- name: Checkout code
240+
uses: actions/checkout@v4
241+
with:
242+
fetch-depth: 0
243+
submodules: true
244+
245+
- name: Setup Node.js 20
246+
uses: actions/setup-node@v4
247+
with:
248+
node-version: '20'
249+
cache: 'npm'
250+
251+
- name: Configure AWS Credentials for Tests
252+
uses: aws-actions/configure-aws-credentials@v4
253+
with:
254+
aws-region: us-west-2
255+
role-to-assume: arn:aws:iam::370957321024:role/GitHub-CI-MPL-Dafny-Role-us-west-2
256+
role-session-name: JavaScriptTests
257+
258+
- name: Install dependencies
259+
run: npm ci --unsafe-perm
260+
261+
- name: Validate published packages - Node.js
262+
env:
263+
PUBLISH_LOCAL: "false"
264+
run: |
265+
npm run verdaccio-node-decrypt
266+
npm run verdaccio-node-encrypt
267+
268+
validate-browser:
269+
runs-on: ubuntu-latest
270+
# TODO: Uncomment when adding publish step
271+
# needs: [publish]
272+
steps:
273+
- name: Checkout code
274+
uses: actions/checkout@v4
275+
with:
276+
fetch-depth: 0
277+
submodules: true
278+
279+
- name: Setup Node.js 18
280+
uses: actions/setup-node@v4
281+
with:
282+
node-version: '18'
283+
cache: 'npm'
284+
285+
- name: Configure AWS Credentials for Tests
286+
uses: aws-actions/configure-aws-credentials@v4
287+
with:
288+
aws-region: us-west-2
289+
role-to-assume: arn:aws:iam::370957321024:role/GitHub-CI-MPL-Dafny-Role-us-west-2
290+
role-session-name: JavaScriptTests
291+
292+
- name: Install dependencies
293+
run: npm ci --unsafe-perm
294+
295+
- name: Validate published packages - Browser
296+
env:
297+
PUBLISH_LOCAL: "false"
298+
run: |
299+
npm run verdaccio-browser-decrypt
300+
npm run verdaccio-browser-encrypt

0 commit comments

Comments
 (0)