Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
types: [completed]

permissions:
actions: write
contents: write

env:
Expand Down Expand Up @@ -36,6 +35,12 @@ jobs:
id: version
run: echo "version=$(node -p "require('./packages/core/package.json').version")" >> "$GITHUB_OUTPUT"

- name: Verify release metadata before tagging
if: steps.changed.outputs.changed == 'true'
env:
TAG: v${{ steps.version.outputs.version }}
run: node scripts/verify-release.mjs --tag "$TAG"

- name: Create and push tag if missing
if: steps.changed.outputs.changed == 'true'
env:
Expand All @@ -49,5 +54,4 @@ jobs:
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "$TAG" -m "release $TAG"
git push origin "$TAG"
gh workflow run release.yml --ref "$TAG"
fi
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:

permissions:
contents: read

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
path: release-assets/*
github-release:
needs: build-native
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -252,6 +253,7 @@ jobs:

publish-npm:
needs: verify
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -288,6 +290,7 @@ jobs:

publish-crates:
needs: verify
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -323,6 +326,7 @@ jobs:

publish-pypi:
needs: verify
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
environment: pypi
steps:
Expand Down
Loading