Skip to content

fix: release automation check #29

fix: release automation check

fix: release automation check #29

Workflow file for this run

name: ci-run
on:
pull_request:
push:
branches: [main]
concurrency:
group: check-${{ github.ref }}
cancel-in-progress: true
jobs:
general-checks:
name: general-checks 🧹
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./proof_verifier_js/ts
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: '22'
- name: Check
run: |
curl -i -X POST \
-H "Authorization: Bearer ${{ secrets.RELEASE_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
-H "Content-Type: application/json" \
https://api.github.com/repos/matter-labs/ethereum-prover/git/refs \
--data-raw '{
"ref": "refs/tags/test-tag",
"sha": "d7633a13387d7e4c685719fd4121b7146a5ef4f0"
}'
# curl -i \
# -H "Authorization: Bearer ${{ secrets.RELEASE_TOKEN }}" \
# -H "Accept: application/vnd.github+json" \
# https://api.github.com/repos/matter-labs/ethereum-prover
# # 1) Is the commit resolvable?
# curl -i -H "Authorization: Bearer ${{ secrets.RELEASE_TOKEN }}" -H "Accept: application/vnd.github+json" \
# https://api.github.com/repos/matter-labs/ethereum-prover/commits/d7633a13387d7e4c685719fd4121b7146a5ef4f0
# # 2) Is that SHA on main?
# curl -s -H "Authorization: Bearer ${{ secrets.RELEASE_TOKEN }}" -H "Accept: application/vnd.github+json" \
# https://api.github.com/repos/matter-labs/ethereum-prover/compare/main...d7633a13387d7e4c685719fd4121b7146a5ef4f0 | jq -r '.status, .message?'
# curl -i \
# -X POST https://api.github.com/repos/matter-labs/ethereum-prover/releases \
# -H "Accept: application/vnd.github+json" \
# -H "Authorization: Bearer ${{ secrets.RELEASE_TOKEN }}" \
# -H "X-GitHub-Api-Version: 2022-11-28" \
# -H "Content-Type: application/json" \
# --data-raw '{
# "name": "v0.1.1",
# "tag_name": "v0.1.1",
# "body": "## [0.1.1](https://github.com/matter-labs/ethereum-prover/compare/v0.1.0...v0.1.1) (2026-01-12)\n\n\n### Features\n\n* Initial commit ([#1](https://github.com/matter-labs/ethereum-prover/issues/1)) ([08e3492](https://github.com/matter-labs/ethereum-prover/commit/08e3492154425f4860af3bf70a00f8c6d200d669))\n\n\n### Bug Fixes\n\n* Fix packaging the library and enable wasmopt ([#3](https://github.com/matter-labs/ethereum-prover/issues/3)) ([48caa26](https://github.com/matter-labs/ethereum-prover/commit/48caa26092ab13fa42f574e33a0e0dd4c761bb3e))",
# "draft": false,
# "prerelease": false,
# "target_commitish": "d7633a13387d7e4c685719fd4121b7146a5ef4f0"
# }'
# npx -y release-please@17.1.3 github-release \
# --repo-url=matter-labs/ethereum-prover \
# --config-file=.github/release-please/config.json \
# --manifest-file=.github/release-please/manifest.json \
# --trace --debug --token ${{ secrets.RELEASE_TOKEN }}
# - name: Install Rust toolchain
# uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
# with:
# inherit-toolchain: true
# - uses: taiki-e/install-action@3522286d40783523f9c7880e33f785905b4c20d0 # v2.66.1
# with:
# tool: wasm-pack
# - name: Setup Node.js
# uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
# with:
# node-version: '22'
# - uses: mskelton/setup-yarn@8d0bc12bc7f72a9acfc32019da0381dfcb481df0 # v3.0.0
# - name: Install deps
# run: yarn install
# - name: Build
# run: yarn build
# license-check:
# name: license-check 📜
# runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: ./proof_verifier_js/ts
# steps:
# - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
# - name: Setup Node.js
# uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
# with:
# node-version: '22'
# - name: Install license-checker
# run: npm install -g license-checker
# - name: Run license checker
# run: |
# license-checker --production \
# --onlyAllow "MIT;Apache-2.0" \
# --summary
# # Special job that allows some of the jobs to be skipped or failed
# # requiring others to be successful
# pr-checks:
# runs-on: ubuntu-latest
# if: always()
# needs:
# - general-checks
# steps:
# - name: Decide on PR checks
# uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
# with:
# jobs: ${{ toJSON(needs) }}