Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
Merged
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
23 changes: 18 additions & 5 deletions .github/workflows/release.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
name: Release
name: CI Flow

on:
- workflow_dispatch
pull_request:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest

if: github.ref == 'refs/heads/main'
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an important check to speed up the process.


steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: PNPM Install
uses: pnpm/action-setup@v4
Expand All @@ -34,8 +42,13 @@ jobs:
- name: Build
run: pnpm build

- name: Publish to npm
working-directory: packages/devtools
run: npm publish --access public
- name: Create Release Pull Request or Publish
if: github.ref == 'refs/heads/main'
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}