跳到正文
cccskills
免费在 GitHub 公开

ci-publish

Send main to the Chrome Web Store and Firefox Add-ons, by tagging it `store-<version>`.

中文简介正在准备中。当前显示原文说明。

theophile-wallez/LichessNeo星标 29(GitHub 29 + cccskills 0)
集成工具GitHub

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md2.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

A store-<version> tag on origin/main's last commit runs the Release workflow in its store mode: the CI, then the store zip sent to the Chrome Web Store and the Firefox zip, with its sources, to Firefox Add-ons. Each store reviews it before it goes live. A version still in review on the Chrome Web Store is cancelled, and the new one takes its place. Arguments: $ARGUMENTS; refuse any.

Pass gh the origin repository (--repo <owner>/<repo>, from git remote get-url origin): the checkout has more than one remote.

  1. It runs on what GitHub has, not the local checkout: git fetch origin --tags, then compare origin/main with the local main. If local work isn't on origin/main yet, say so and stop: don't push for the user.
  2. v=$(node scripts/version.ts --ref origin/main): the version it gets.
  3. Check the secrets: gh secret list must show CWS_SERVICE_ACCOUNT, CWS_PUBLISHER_ID, AMO_JWT_ISSUER and AMO_JWT_SECRET. If one is missing, name it and stop: that store's job would fail.
  4. If store-$v exists on origin already, that commit was sent: say so and stop.
  5. Tag and push: git tag "store-$v" origin/main && git push origin "store-$v". Then find the run it made (gh run list --workflow release.yml --event push --limit 1 --json databaseId,url,headBranch, retrying briefly until its headBranch is the tag) and give its URL.
  6. Follow the run to its end: gh run watch <id> --exit-status in the background (it takes several minutes, the end-to-end tests most of it), then give each job's outcome (gh run view <id> --json jobs). If the CI fails, nothing was sent: name the failing tests (gh run view <id> --log-failed) and what they say, then delete the tag (git push origin :store-$v, git tag -d store-$v): it would say this version was sent. If store or amo fails, give its error line. If both pass, say each store has the version in review and, from the store job's Cancelled the review line, which version it replaced, if any.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

ci

免费

Start the release of main by hand (the CI, then a GitHub release of its zips), since no push runs it.

中文简介正在准备中。当前显示原文说明。

theophile-wallez/LichessNeo292026年10月26日 更新

查看 theophile-wallez 的全部技能

报告此技能的问题