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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body:
attributes:
label: Rulix Version
description: Run `rulix --version`
placeholder: "0.1.0"
placeholder: "0.1.1"
validations:
required: true

Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish to npm

on:
push:
tags:
- "v*"

permissions:
contents: read

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
registry-url: https://registry.npmjs.org

- run: npm ci

- run: npm run lint

- run: npm run typecheck

- run: npm test

- run: npm run build

- name: Verify dist output
run: |
test -f dist/index.js
test -f dist/index.cjs
test -f dist/cli/index.js
head -1 dist/cli/index.js | grep -q "#!/usr/bin/env node"

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rulix",
"version": "0.1.0",
"version": "0.1.1",
"description": "One ruleset. Every AI coding tool.",
"type": "module",
"bin": {
Expand Down Expand Up @@ -43,7 +43,7 @@
"agents-md",
"cli"
],
"author": "",
"author": "Daniel Chinome",
"license": "MIT",
"bugs": {
"url": "https://github.com/danielcinome/rulix/issues"
Expand Down