Skip to content

The open source AI video agent: turns any coding agent into a video agent, with an editor to change anything it makes.

release: run the checks on the Version packages pull request (#6)

riverisbuilding082972517d45
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c9a7147..a6e3b5d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -10,6 +10,9 @@ name: release
# `npm trust github openfilm --file release.yml --repo openfilm/openfilm --allow-publish`). Then Settings → Publishing access:
# "Require two-factor authentication and disallow tokens".
# - GitHub: Settings → Actions → General → "Allow GitHub Actions to create and approve pull requests".
+# A pull request this workflow's token opens or updates starts no workflow (GitHub's rule), and main takes a pull
+# request only once its checks pass: ci.yml is started on the "Version packages" branch by hand (workflow_dispatch,
+# which the token may start), and its checks are that pull request's.
on:
push:
branches: [main]
@@ -25,6 +28,7 @@ jobs:
permissions:
contents: write # the version branch, the packages' tags and GitHub releases
pull-requests: write # the "Version packages" pull request
+ actions: write # ci.yml on its branch
id-token: write # npm trusted publishing (OIDC) and provenance
env:
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
@@ -44,7 +48,8 @@ jobs:
- run: pnpm test
- name: What the package holds (the official product.json)
run: pnpm check:pack
- - uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
+ - id: changesets
+ uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
with:
version: pnpm changeset version
publish: pnpm changeset publish
@@ -54,3 +59,8 @@ jobs:
createGithubReleases: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Checks for the "Version packages" pull request
+ if: steps.changesets.outputs.pullRequestNumber
+ run: gh workflow run ci.yml --ref changeset-release/main
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}