diff --git a/.github/workflows/claims-latest.yml b/.github/workflows/claims-latest.yml index 841d85f..e1cef3a 100644 --- a/.github/workflows/claims-latest.yml +++ b/.github/workflows/claims-latest.yml @@ -12,11 +12,4 @@ permissions: jobs: pins: name: README pins equal the newest tag - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - uses: cosmichackerx/claims-check@v0.2.0 - with: - config: .claims-latest.json + uses: cosmichackerx/claims-check/.github/workflows/reusable-latest-tag.yml@v0.3.0 diff --git a/.github/workflows/release-gate.yml b/.github/workflows/release-gate.yml index 9656648..3d05154 100644 --- a/.github/workflows/release-gate.yml +++ b/.github/workflows/release-gate.yml @@ -1,5 +1,6 @@ # Pre-release claims gate: the README, the package version and the tag being released must agree. # Run it by hand BEFORE tagging (Actions > Release gate > Run workflow, tag = v1.2.3), and it runs again on the tag. +# The steps live in cosmichackerx/claims-check (reusable workflow); this file only says when to run and what to set up. name: Release gate on: @@ -16,27 +17,10 @@ permissions: contents: read jobs: - claims: + gate: name: claims-check against the tag - runs-on: ubuntu-latest - env: - RELEASE_TAG: ${{ inputs.tag || github.ref_name }} - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 - with: - node-version: 24 - cache: npm - - run: npm ci - - run: npm run build - - name: Tag looks like a version - run: | - case "$RELEASE_TAG" in v[0-9]*) ;; *) echo "RELEASE_TAG=$RELEASE_TAG is not a version tag (use v1.2.3 in the tag input)"; exit 1;; esac - - name: README numbers and pins hold - uses: cosmichackerx/claims-check@v0.2.0 - - name: README pins and package version equal the tag being released - uses: cosmichackerx/claims-check@v0.2.0 - with: - config: .claims-release.json + uses: cosmichackerx/claims-check/.github/workflows/reusable-release-gate.yml@v0.3.0 + with: + tag: ${{ inputs.tag || github.ref_name }} + node-version: "24" + setup: npm ci && npm run build