Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ui-install-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
allow-lint-errors:
required: true
type: boolean
# release validation
fail-on-snapshot-deps:
required: false
type: boolean
default: false

jobs:
run:
Expand Down Expand Up @@ -52,6 +57,16 @@ jobs:
- name: List installed FOLIO package versions
run: yarn list --pattern @folio

# Snapshots resolve from the npm-folioci repository; released versions resolve from npm-folio.
# This job installs with yarn classic, so any npm-folioci "resolved" URL in yarn.lock is a snapshot.
- name: Fail on snapshot dependencies
if: inputs.fail-on-snapshot-deps
run: |
if grep -nE '^\s+resolved "https?://[^"]*npm-folioci' yarn.lock; then
echo "::error file=yarn.lock::yarn.lock contains snapshot (npm-folioci) resolutions - regenerate against npm-folio before releasing"
exit 1
fi

- name: Publish yarn.lock
uses: actions/upload-artifact@v7
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ jobs:
folio-npm-registry: ${{ needs.set-shared-variables.outputs.folio-npm-registry }}
allow-lint-errors: ${{ inputs.allow-lint-errors }}
yarn-lock-retention-days: ${{ inputs.yarn-lock-retention-days }}
# On release tags, fail if the lockfile still pins snapshots from npm-folioci.
fail-on-snapshot-deps: ${{ needs.set-shared-variables.outputs.is-release == 'True' }}

jest-tests:
name: Run Jest tests
Expand Down