Skip to content

Commit

Permalink
feat: rename to create-galacean & add ci release (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun authored Dec 28, 2023
1 parent 48756d8 commit ff2a45b
Show file tree
Hide file tree
Showing 4 changed files with 571 additions and 15 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: true

# after pnpm
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: https://registry.npmjs.org/
cache: pnpm

- run: pnpm run build
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,24 @@ A tool for creating your galacean application. Currently supported template pres

## Usage

### pnpm

```bash
pnpm create galacean
```

### npm

> Compatibility Note: Node.js version >=12.0.0.
```shell
npm init @galacean/galacean-app
npm init galacean
```

### yarn

```shell
yarn create @galacean/galacean-app
yarn create galacean
```

After creating a template, run:
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@galacean/create-galacean-app",
"version": "0.9.4",
"name": "create-galacean",
"version": "0.9.5",
"description": "",
"main": "lib/index.js",
"types": "types/index.d.ts",
Expand All @@ -16,7 +16,8 @@
"build": "tsc",
"dev": "tsc -w",
"dev:vue": "pnpm -C templates/vue dev",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"release": "bumpp"
},
"repository": {
"type": "git",
Expand All @@ -39,11 +40,12 @@
},
"devDependencies": {
"@types/inquirer": "^7.3.1",
"@types/node": "^14.14.24",
"@types/node": "^20.10.5",
"bumpp": "^9.2.1",
"typescript": "^4.1.3"
},
"dependencies": {
"cac": "^6.7.1",
"cac": "^6.7.14",
"chalk": "^4.1.0",
"inquirer": "^7.3.3"
}
Expand Down
Loading

0 comments on commit ff2a45b

Please sign in to comment.