mirror of
https://github.com/hanzoai/zod.git
synced 2026-09-24 17:04:49 +00:00
Delete upstream workflows
This fork does not ship upstream's releases, and its hosted-runner jobs never start here. Claude-Session: https://claude.ai/code/session_01HuMDfgFssPUptYUzgZ6Cp8
This commit is contained in:
@@ -1,57 +0,0 @@
|
||||
name: Claude Code Review
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
# Optional: Only run on specific file changes
|
||||
# paths:
|
||||
# - "src/**/*.ts"
|
||||
# - "src/**/*.tsx"
|
||||
# - "src/**/*.js"
|
||||
# - "src/**/*.jsx"
|
||||
|
||||
jobs:
|
||||
claude-review:
|
||||
# Optional: Filter by PR author
|
||||
# if: |
|
||||
# github.event.pull_request.user.login == 'external-contributor' ||
|
||||
# github.event.pull_request.user.login == 'new-developer' ||
|
||||
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
issues: read
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Run Claude Code Review
|
||||
id: claude-review
|
||||
uses: anthropics/claude-code-action@v1
|
||||
with:
|
||||
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
||||
prompt: |
|
||||
REPO: ${{ github.repository }}
|
||||
PR NUMBER: ${{ github.event.pull_request.number }}
|
||||
|
||||
Please review this pull request and provide feedback on:
|
||||
- Code quality and best practices
|
||||
- Potential bugs or issues
|
||||
- Performance considerations
|
||||
- Security concerns
|
||||
- Test coverage
|
||||
|
||||
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
|
||||
|
||||
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
|
||||
|
||||
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
||||
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
|
||||
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
name: Claude Code
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
pull_request_review_comment:
|
||||
types: [created]
|
||||
issues:
|
||||
types: [opened, assigned]
|
||||
pull_request_review:
|
||||
types: [submitted]
|
||||
|
||||
jobs:
|
||||
claude:
|
||||
if: |
|
||||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
|
||||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
|
||||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
||||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
issues: read
|
||||
id-token: write
|
||||
actions: read # Required for Claude to read CI results on PRs
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Run Claude Code
|
||||
id: claude
|
||||
uses: anthropics/claude-code-action@v1
|
||||
with:
|
||||
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
||||
|
||||
# This is an optional setting that allows Claude to read CI results on PRs
|
||||
additional_permissions: |
|
||||
actions: read
|
||||
|
||||
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
|
||||
# prompt: 'Update the pull request description to include a summary of changes.'
|
||||
|
||||
# Optional: Add claude_args to customize behavior and configuration
|
||||
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
||||
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
|
||||
# claude_args: '--allowed-tools Bash(gh pr:*)'
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
# PULLFROG ACTION — DO NOT EDIT EXCEPT WHERE INDICATED
|
||||
name: Pullfrog
|
||||
run-name: ${{ inputs.name || github.workflow }}
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
prompt:
|
||||
type: string
|
||||
description: Agent prompt
|
||||
name:
|
||||
type: string
|
||||
description: Run name
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: write
|
||||
pull-requests: write
|
||||
issues: write
|
||||
actions: read
|
||||
checks: read
|
||||
|
||||
jobs:
|
||||
pullfrog:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Run agent
|
||||
uses: pullfrog/pullfrog@v0
|
||||
with:
|
||||
prompt: ${{ inputs.prompt }}
|
||||
env:
|
||||
# add any additional keys your agent(s) need
|
||||
# optionally, comment out any you won't use
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
|
||||
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
||||
CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }}
|
||||
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
|
||||
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
|
||||
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
|
||||
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
|
||||
|
||||
@@ -1,166 +0,0 @@
|
||||
# .github/release.yml
|
||||
|
||||
name: Release on npm
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "packages/zod/package.json"
|
||||
- "packages/zod/src/**"
|
||||
- ".github/workflows/release.yml"
|
||||
|
||||
jobs:
|
||||
test-node:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node: ["lts/*"]
|
||||
typescript: ["5.5", "latest"]
|
||||
name: Test with TypeScript ${{ matrix.typescript }} on Node ${{ matrix.node }} (${{ matrix.os }})
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- uses: pnpm/action-setup@v4
|
||||
- run: pnpm install
|
||||
- run: pnpm add typescript@${{ matrix.typescript }} -w
|
||||
- run: pnpm build
|
||||
- run: pnpm test
|
||||
- run: pnpm run --filter @zod/resolution test:all
|
||||
- run: pnpm run --filter @zod/integration test:all
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node: ["latest"]
|
||||
name: Lint on Node ${{ matrix.node }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- uses: pnpm/action-setup@v4
|
||||
- run: pnpm install
|
||||
- run: pnpm format:check
|
||||
- run: pnpm lint:check
|
||||
|
||||
check-circular:
|
||||
runs-on: ubuntu-latest
|
||||
name: Check for circular dependencies
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "latest"
|
||||
- uses: pnpm/action-setup@v4
|
||||
- run: pnpm install
|
||||
- run: pnpm check:circular
|
||||
|
||||
build_and_publish:
|
||||
needs: [test-node, lint, check-circular]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: read
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
registry-url: https://registry.npmjs.org/
|
||||
|
||||
- name: Upgrade npm to latest (required for trusted publishing >=11.5.1)
|
||||
run: npm install -g npm@latest
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
|
||||
- run: pnpm install
|
||||
- run: pnpm build
|
||||
- run: pnpm test
|
||||
- run: pnpm run --filter @zod/resolution test:all
|
||||
- run: pnpm run prepublishOnly
|
||||
working-directory: ./packages/zod
|
||||
|
||||
- id: publish
|
||||
name: Publish to NPM
|
||||
uses: JS-DevTools/npm-publish@v4
|
||||
with:
|
||||
# dry-run: true
|
||||
provenance: true
|
||||
package: ./packages/zod
|
||||
|
||||
- run: pnpm jsr publish --allow-slow-types # --dry-run
|
||||
if: ${{ steps.publish.outputs.type }}
|
||||
working-directory: ./packages/zod
|
||||
|
||||
- name: Post-publish
|
||||
if: ${{ steps.publish.outputs.type }}
|
||||
run: |
|
||||
echo "Published ${{ steps.publish.outputs.type }} version: ${{ steps.publish.outputs.version }}"
|
||||
|
||||
- name: Set canary version
|
||||
if: ${{ !steps.publish.outputs.type }}
|
||||
working-directory: ./packages/zod
|
||||
run: |
|
||||
npm --no-git-tag-version version minor
|
||||
npm --no-git-tag-version version $(npm pkg get version | sed 's/"//g')-canary.$(date +'%Y%m%dT%H%M%S')
|
||||
|
||||
- name: Publish canary
|
||||
if: ${{ !steps.publish.outputs.type }}
|
||||
uses: JS-DevTools/npm-publish@v4
|
||||
with:
|
||||
dry-run: false
|
||||
provenance: true
|
||||
tag: canary
|
||||
package: ./packages/zod
|
||||
|
||||
- name: Done with canary
|
||||
if: ${{ !steps.publish.outputs.type }}
|
||||
run: |
|
||||
echo "Canary published."
|
||||
exit 0
|
||||
|
||||
- name: Configure changelog
|
||||
if: ${{ steps.publish.outputs.type }}
|
||||
run: |
|
||||
echo '{"categories": [], "template": "## Commits:\n\n${{ '${{UNCATEGORIZED}}' }}", "pr_template": ${{ '"- ${{MERGE_SHA}} ${{TITLE}}"' }} }' > changelog_config.json
|
||||
cat changelog_config.json
|
||||
echo "last_tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
||||
echo "curr_commit=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||
|
||||
- name: Generate changelog
|
||||
if: ${{ steps.publish.outputs.type }}
|
||||
id: github_release
|
||||
uses: mikepenz/[email protected]
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
fromTag: "${{ env.last_tag }}"
|
||||
toTag: ${{ github.ref }}
|
||||
commitMode: true
|
||||
configuration: changelog_config.json
|
||||
|
||||
- name: Create release
|
||||
if: ${{ steps.publish.outputs.type }}
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: v${{ steps.publish.outputs.version }}
|
||||
release_name: v${{ steps.publish.outputs.version }}
|
||||
commitish: ${{ github.ref }}
|
||||
body: ${{steps.github_release.outputs.changelog}}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
# .github/workflows/auto-close.yml
|
||||
name: Auto-close labeled issues
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # every day at midnight UTC
|
||||
workflow_dispatch:
|
||||
permissions:
|
||||
issues: write
|
||||
jobs:
|
||||
auto-close:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v9 # Close stale issues & PRs :contentReference[oaicite:0]{index=0}
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-label: 'needs-info' # label you’ll add to trigger closing
|
||||
days-before-stale: -1 # don't mark things with needs-info
|
||||
days-before-close: 5 # replace 7 with your X days
|
||||
only-labels: 'needs-info' # ignore all other issues
|
||||
remove-stale-when-updated: false
|
||||
stale-issue-message: ''
|
||||
close-issue-message: ''
|
||||
@@ -1,63 +0,0 @@
|
||||
name: test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- v4
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test-node:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node: ["lts/*"]
|
||||
typescript: ["5.5", "latest"]
|
||||
name: Test with TypeScript ${{ matrix.typescript }} on Node ${{ matrix.node }} (${{ matrix.os }})
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- uses: pnpm/action-setup@v4
|
||||
- run: pnpm install
|
||||
- run: pnpm add typescript@${{ matrix.typescript }} -w
|
||||
- run: pnpm build
|
||||
- run: pnpm test
|
||||
- run: pnpm run --filter @zod/resolution test:all
|
||||
- run: pnpm run --filter @zod/integration test:all
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node: ["latest"]
|
||||
name: Lint on Node ${{ matrix.node }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- uses: pnpm/action-setup@v4
|
||||
- run: pnpm install
|
||||
- run: pnpm format:check
|
||||
- run: pnpm lint:check
|
||||
|
||||
check-circular:
|
||||
runs-on: ubuntu-latest
|
||||
name: Check for circular dependencies
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "latest"
|
||||
- uses: pnpm/action-setup@v4
|
||||
- run: pnpm install
|
||||
- run: pnpm check:circular
|
||||
Reference in New Issue
Block a user