Skip to content

Commit

Permalink
fix(rime-snomiao): release script
Browse files Browse the repository at this point in the history
release script
  • Loading branch information
snomiao committed Oct 25, 2023
1 parent a703895 commit f4ccd67
Show file tree
Hide file tree
Showing 5 changed files with 672 additions and 431 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ on:
push:
branches:
- main
- alpha
- beta
jobs:
release:
if: github.repository == 'snomiao/rime-snomiao'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 6.32.9
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm install
- run: pnpm build
- run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@

1. Install squirrel by 在这里安装 squirrel (rime の mac に分支)。

1. [rime.im](https://rime.im) (official website)
1. [rime.im](https://rime.im) (official website)s
2. or `brew install squirrel --cask`

2. Install rime-snomiao receipe 安装 rime-snomiao receipe

```shell
git clone https://github.com/snomiao/rime-snomiao
cd rime-snomiao
git pull origin
cp -r rime-snomiao/Rime/* ~/Library/Rime
cp -r ./* ~/Library/Rime/
```

3. 屏幕右上角,输入法下拉菜单,点击 Deploy 载入
Expand All @@ -43,9 +44,9 @@
- 方法 1
- 將本項目下載解压,将 `./Rime` 目録裏的内容复制到:`C:\Users\你的用户名\AppData\Roaming\Rime` (即 %APPDATA%\Rime )
- [配置](#配置) 输入法(或重启系统)
<!-- - 方法 2
<!-- - 方法 2
- 運行
```
````
git clone https://github.com/snomiao/rime-snomiao
cd rime-snomiao
git pull
Expand Down
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rime-snomiao",
"version": "3.0.0",
"description": "",
"description": "rime-snomiao is a rime schema that provides a set of ime plugins for typing in Chinese, Japanese, and English. It is designed to be used with the rime input method engine.",
"keywords": [],
"homepage": "https://github.com/snomiao/rime-snomiao#readme",
"bugs": {
Expand All @@ -21,7 +21,9 @@
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"bin": "dist/cli.mjs",
"bin": {
"rime-snomiao": "dist/cli.mjs"
},
"files": [
"dist"
],
Expand All @@ -33,8 +35,6 @@
"release": {
"branches": [
"main",
"next",
"next-major",
{
"name": "beta",
"prerelease": true
Expand All @@ -49,13 +49,12 @@
"@types/node": "^18.11.18",
"aswitcher": "^1.0.1",
"pkg-dir": "^7.0.0",
"prettier-plugin-organize-imports": "^3.2.2",
"prettier-plugin-packagejson": "^2.4.0",
"prettier-plugin-tsconfig": "^0.0.1",
"semantic-release": "^20.1.0",
"snobuild": "^3.2.11",
"snorun": "^1.1.17",
"work-package-dir": "^1.0.0",
"prettier-plugin-organize-imports": "^3.2.2",
"prettier-plugin-packagejson": "^2.4.0",
"prettier-plugin-tsconfig": "^0.0.1"
},
"semantic-release": "semantic-release"
"work-package-dir": "^1.0.0"
}
}
Loading

0 comments on commit f4ccd67

Please sign in to comment.