Skip to content

Commit

Permalink
chore: release v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed Jun 12, 2024
1 parent a8b5857 commit 9a16fe6
Show file tree
Hide file tree
Showing 13 changed files with 74 additions and 95 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
branches:
- master

jobs:
docker:
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

jobs:
release:
permissions:
id-token: write
contents: write
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -16,16 +19,17 @@ jobs:
# os: [windows-latest, macos-latest, ubuntu-latest]

steps:
- name: Check out git repository
- name: check out git repository
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

- uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
registry-url: "https://registry.npmjs.org"

- run: npx changelogithub
env:
Expand All @@ -37,6 +41,12 @@ jobs:
- name: build libs
run: pnpm run build

- name: publish to npm
run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

- name: build vscode template
run: pnpm run vscode:build-tpl

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/monorepo",
"type": "module",
"version": "1.5.4",
"version": "1.6.0",
"packageManager": "pnpm@8.6.5",
"description": "",
"license": "GPL3",
Expand All @@ -26,13 +26,12 @@
],
"scripts": {
"clean": "rimraf packages/*/dist --glob",
"clean:npm": "rimraf packages/*/node_modules --glob && rimraf node_modules",
"clean:npm": "rimraf packages/*/node_modules --glob && rimraf node_modules",
"run:core": "npm -C packages/core run start",
"rule-utils:build": "npm -C packages/rule-utils run build",
"core:build": "npm -C packages/core run build",
"shared:build": "npm -C packages/shared run build",
"epub:build": "npm -C packages/epub run build",
"build": "npm-run-all rule-utils:build core:build shared:build epub:build",
"build:web": "npm -C packages/web run build",
"build:web-w": "npm -C packages/web run build:w",
"run:vsc": "npm-run-all core:build build:web-w",
Expand All @@ -56,7 +55,8 @@
"server:build": "npm -C packages/server run build",
"cli:build-tpl": "npm -C packages/web run cli:build",
"cli:build-js": "npm -C packages/cli run build",
"cli:build": "npm-run-all server:build cli:build-tpl cli:build-js"
"cli:build": "npm-run-all cli:build-tpl cli:build-js",
"build": "npm-run-all rule-utils:build core:build epub:build shared:build server:build cli:build"
},
"lint-staged": {
"*.{vue,js,ts}": "eslint --fix"
Expand Down
6 changes: 5 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/cli",
"version": "1.5.4",
"version": "1.6.0",
"description": "",
"type": "commonjs",
"files": [
Expand All @@ -16,6 +16,10 @@
"keywords": [],
"author": "aooiuu",
"license": "GPL3",
"repository": {
"type": "git",
"url": "https://github.com/aooiuu/any-reader"
},
"dependencies": {
"@any-reader/server": "workspace:^",
"open": "^10.1.0"
Expand Down
6 changes: 5 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/core",
"version": "1.5.4",
"version": "1.6.0",
"description": "",
"scripts": {
"start": "esno src/start.ts",
Expand All @@ -20,6 +20,10 @@
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/aooiuu/any-reader"
},
"dependencies": {
"axios": "^1.5.1",
"cheerio": "1.0.0-rc.12",
Expand Down
6 changes: 5 additions & 1 deletion packages/epub/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/epub",
"version": "1.5.4",
"version": "1.6.0",
"description": "",
"scripts": {
"build": "unbuild"
Expand All @@ -18,6 +18,10 @@
"dist",
"epub.d.ts"
],
"repository": {
"type": "git",
"url": "https://github.com/aooiuu/any-reader"
},
"dependencies": {
"adm-zip": "^0.4.11",
"xml2js": "^0.4.23"
Expand Down
6 changes: 5 additions & 1 deletion packages/rule-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/rule-utils",
"version": "1.5.4",
"version": "1.6.0",
"description": "",
"scripts": {
"build": "unbuild",
Expand All @@ -19,6 +19,10 @@
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/aooiuu/any-reader"
},
"dependencies": {
"base64-js": "^1.5.1",
"pako": "^2.1.0"
Expand Down
8 changes: 7 additions & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/server",
"version": "1.5.4",
"version": "1.6.0",
"description": "",
"scripts": {
"build": "unbuild",
Expand All @@ -22,6 +22,10 @@
"keywords": [],
"author": "aooiuu",
"license": "GPL3",
"repository": {
"type": "git",
"url": "https://github.com/aooiuu/any-reader"
},
"dependencies": {
"@any-reader/core": "workspace:^",
"@any-reader/shared": "workspace:^",
Expand All @@ -36,6 +40,8 @@
},
"devDependencies": {
"@types/bcryptjs": "^2.4.6",
"@types/koa-router": "^7.4.8",
"@types/koa-static": "^4.0.4",
"@types/koa-session": "^6.4.5",
"@types/koa__cors": "^5.0.0",
"esno": "^0.16.3"
Expand Down
3 changes: 2 additions & 1 deletion packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export async function start(port = 8898, root = resolve(__dirname, 'public')) {
app
.use(session(SESSION_CONFIG, app))
.use(async (ctx, next) => {
if (ctx.session!.uid || ['/favicon.ico', '/login', '/install'].includes(ctx.path)) {
if (ctx.session!.uid || ['/favicon.ico', '/login', '/install', '/', 'index.html'].includes(ctx.path)
|| /^\/assets\//.test(ctx.path)) {
await next()
return
}
Expand Down
8 changes: 5 additions & 3 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/shared",
"version": "1.5.4",
"version": "1.6.0",
"description": "",
"scripts": {
"build": "unbuild",
Expand All @@ -22,6 +22,10 @@
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/aooiuu/any-reader"
},
"dependencies": {
"@any-reader/core": "workspace:^",
"@any-reader/epub": "workspace:^",
Expand All @@ -41,8 +45,6 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@types/encoding-japanese": "^2.0.5",
"@types/koa-router": "^7.4.8",
"@types/koa-static": "^4.0.4",
"@types/lodash-es": "^4.17.12",
"@types/node": "^18.16.19",
"esno": "^0.16.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "any-reader",
"description": "摸鱼,自定义规则多站点聚合搜索阅读小说、漫画。包含JS规则解析库和VSCode插件。支持本地小说 TXT、EPUB",
"icon": "resources/icon.png",
"version": "1.5.4",
"version": "1.6.0",
"publisher": "aooiu",
"private": true,
"qna": "https://github.com/aooiuu/any-reader/issues",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "any-reader-web",
"version": "1.5.4",
"version": "1.6.0",
"private": true,
"scripts": {
"dev": "cross-env VITE_APP_PLATFORM=browser vite",
Expand Down
Loading

0 comments on commit 9a16fe6

Please sign in to comment.