Skip to content

Add eas-simulator skill #47

Add eas-simulator skill

Add eas-simulator skill #47

name: plugin version bump
on:
pull_request:
branches:
- main
merge_group:
branches:
- main
concurrency:
group: plugin-version-bump-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
issues: write
jobs:
check:
name: check Expo plugin versions
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: Check plugin version bump
id: version-check
continue-on-error: true
env:
VERSION_CHECK_SUMMARY_PATH: .context/plugin-version-check-summary.md
run: bun scripts/check-plugin-version-bump.ts origin/main
- name: Add workflow summary
if: always() && hashFiles('.context/plugin-version-check-summary.md') != ''
run: cat .context/plugin-version-check-summary.md >> "$GITHUB_STEP_SUMMARY"
- name: Comment on pull request
if: always() && github.event_name == 'pull_request' && hashFiles('.context/plugin-version-check-summary.md') != ''
continue-on-error: true
uses: actions/github-script@v7
with:
script: |
const fs = require("node:fs");
const marker = "<!-- expo-plugin-version-check -->";
const summary = fs.readFileSync(".context/plugin-version-check-summary.md", "utf8");
const body = `${marker}\n${summary}`;
const issue_number = context.payload.pull_request.number;
const { owner, repo } = context.repo;
const comments = await github.paginate(github.rest.issues.listComments, {
owner,
repo,
issue_number,
per_page: 100,
});
const existingComment = comments.find(
(comment) => comment.user?.type === "Bot" && comment.body?.includes(marker)
);
if (existingComment) {
await github.rest.issues.updateComment({
owner,
repo,
comment_id: existingComment.id,
body,
});
} else {
await github.rest.issues.createComment({
owner,
repo,
issue_number,
body,
});
}
- name: Fail on invalid plugin versions
if: steps.version-check.outcome == 'failure'
run: exit 1