Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rename to create-galacean & add ci release #22

Merged
merged 4 commits into from
Dec 28, 2023
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
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