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
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Publish packages"

on:
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: ⚙️ Checkout Repository
uses: actions/checkout@v6

- name: 🛠️ Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org/'

- name: 📦 Install Dependencies
run: npm ci

- name: 🔨 Build all packages
run: npm run build
Comment on lines +26 to +27
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Misleading comment: Build is selective, not all packages.

The comment states "Build all packages" but the npm run build command (defined in root package.json line 13) only builds selected packages: jitar, create-jitar, and @jitar/plugin*. Consider updating the comment to reflect the actual behavior or use npm run build:all if all packages should be built.

🔎 Suggested fix
-      - name: 🔨 Build all packages
+      - name: 🔨 Build packages for publication
         run: npm run build
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: 🔨 Build all packages
run: npm run build
- name: 🔨 Build packages for publication
run: npm run build
🤖 Prompt for AI Agents
.github/workflows/publish.yml around lines 26-27: the step comment "🔨 Build all
packages" is misleading because the root npm run build only builds selected
packages (jitar, create-jitar, and @jitar/plugin*); update the comment to
reflect that it builds only those packages (e.g., "🔨 Build selected packages
(jitar, create-jitar, @jitar/plugin*)") or change the command to npm run
build:all if you intend to build every package; ensure the comment and command
are consistent.


- name: 🚀 Publish Jitar
run: npm run publish-jitar

- name: 🚀 Publish plugin for Vite
run: npm run publish-plugin

- name: ✅ Publish Complete
run: echo "Packages published"
Loading