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
49 changes: 49 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Check

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

concurrency:
group: spec-validator-check-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
check:
name: check
runs-on: ubuntu-latest
steps:
- name: Check out the revision
uses: actions/checkout@v7

- name: Set up pnpm
uses: pnpm/action-setup@v4

- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: 24
registry-url: https://registry.npmjs.org
cache: pnpm

- name: Install pinned mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: "0.5.2"

- name: Install dependencies from the frozen lockfile
run: pnpm install --frozen-lockfile

- name: Run canonical checks
run: |
pnpm run check
pnpm run test:all
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ jobs:
PACKAGE_NAME: "@lapismd/spec-validator"
VERSION: ${{ needs.package-gate.outputs.version }}
run: |
for attempt in $(seq 1 12); do
for attempt in $(seq 1 36); do
published="$(npm view "${PACKAGE_NAME}@${VERSION}" version --registry=https://registry.npmjs.org 2>/dev/null || true)"
if [ "$published" = "$VERSION" ]; then
exit 0
fi
if [ "$attempt" = "12" ]; then
echo "${PACKAGE_NAME}@${VERSION} was not available from npm after 120 seconds" >&2
if [ "$attempt" = "36" ]; then
echo "${PACKAGE_NAME}@${VERSION} was not available from npm after 360 seconds" >&2
exit 1
fi
sleep 10
Expand Down
Loading