v2.0.0
Release Highlights
Release tag: v2.0.0
Many of the steps in the reusable deploy workflows used a bash script to perform the step. Some include decision points and errors. The complexity of these scripts warranted the creation of tests to confirm they are operating as expected.
This release moves the primary logic in scripts out of the workflow and into a script file. Tests were created to test various conditions each script is expected to handle. This should improve long term maintenance of the reusable workflows.
Required Updates
get-version job
The get-version script did not have access to the package-lock.json file. This file must be uploaded before using the operations app-build-and-deploy workflow.
In callers…
In the workflow that uses clearlydefined/operations/.github/workflows/app-build-and-deploy.yml@v2.0.0
, upload the package-lock.json file.
upload-package-lock-json:
name: Upload package-lock.json from this repo
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Upload package-lock.json
uses: actions/upload-artifact@v4
with:
name: package-lock.json
path: package-lock.json
Additionally, the step that uses clearlydefined/operations/.github/workflows/app-build-and-deploy.yml@v2.0.0
should identify that it needs the upload step.
build-and-deploy:
name: Build and Deploy
needs: upload-package-lock-json
uses: clearlydefined/operations/.github/workflows/app-build-and-deploy.yml@v2.0.0
...