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
30 changes: 13 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,33 @@
name: Release CI

on: [push]
on:
push:

jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.ADMIN_TOKEN }}

- name: Prepare repository
run: git fetch --unshallow --tags
fetch-depth: 0

- name: Use Node.js 20.11.1
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 20.11.1
cache: npm

- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: yarn-deps-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-deps-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn install --frozen-lockfile
yarn build
npx auto shipit
run: npx auto shipit
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![Build CI](https://github.com/ipetinate/clingon/actions/workflows/node.js.yml/badge.svg?branch=main)](https://github.com/ipetinate/clingon/actions/workflows/node.js.yml)
[![Release CI](https://github.com/ipetinate/clingon/actions/workflows/release.yml/badge.svg)](https://github.com/ipetinate/clingon/actions/workflows/release.yml)
[![Coverage Status](https://img.shields.io/coverallsCoverage/github/ipetinate/clingon?branch=main&logo=coveralls&label=Coverage)](https://coveralls.io/repos/github/ipetinate/clingon/badge.svg?branch=main)
[![Website](https://img.shields.io/website?url=https%3A%2F%2Fclingon.dev&logo=nextra&label=clingon.dev)](https://clingon.dev)
[![Website](https://img.shields.io/website?url=https%3A%2F%2Fclingon.vercel.app&logo=nextra&label=clingon%20doc)](https://clingon.vercel.app/)

[![GitHub Release Date](https://img.shields.io/github/release-date/ipetinate/clingon?display_date=published_at&logo=npm&label=Release%20Date&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fclingon)](https://www.npmjs.com/package/clingon)
[![GitHub Release version](https://img.shields.io/github/v/release/ipetinate/clingon?display_name=release&logo=github&label=Release%20version)](https://github.com/ipetinate/clingon/releases)
Expand Down Expand Up @@ -74,10 +74,10 @@ npx clingon@latest scaffold ResourceName --template template-name

## Command modes

Read more on: [clingon.dev/docs/guide/commands](https://www.clingon.dev/docs/guide/commands)
Read more on: [clingon.dev/docs/guide/commands](https://clingon.vercel.app/docs/guide/commands)

- Commands shortcuts
- `init`: [Init doc](https://www.clingon.dev/docs/guide/commands#init-command)
- `gen`: [Gen doc](https://www.clingon.dev/docs/guide/commands#gen-command)
- `create`: [Create doc](https://www.clingon.dev/docs/guide/commands#create-command)
- `scaffold`: [Scaffold doc](https://www.clingon.dev/docs/guide/commands#scaffold-command)
- `init`: [Init doc](https://clingon.vercel.app/docs/guide/commands#init-command)
- `gen`: [Gen doc](https://clingon.vercel.app/docs/guide/commands#gen-command)
- `create`: [Create doc](https://clingon.vercel.app/docs/guide/commands#create-command)
- `scaffold`: [Scaffold doc](https://clingon.vercel.app/docs/guide/commands#scaffold-command)
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "1.1.0",
"description": "Multipurpose generator CLI based on local config and templates",
"main": "./lib/main.js",
"bin": "./lib/main.js",
"bin": {
"clingon": "./lib/main.js"
},
"author": "Isac Petinate <idpetinate@gmail.com>",
"homepage": "https://clingon.dev",
"repository": {
Expand Down
Loading