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
9 changes: 1 addition & 8 deletions .github/workflows/claims-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
30 changes: 7 additions & 23 deletions .github/workflows/release-gate.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Loading