Skip to content

Commit 144a84b

Browse files
authored
feat!: be compatible with the latest backend (#1762)
* fix: use ack read to increase read counts * fix: follow the upstream backend data structure * docs: readme * fix(timeline): update 'important' property from 'note.hasImportant' to 'note.bookmark' * fix: update to be compatible with the latest backend * fix: remove useMusic hook * ci: pnpm version * fix: import an non-existed music hook * ci: build ci error * ci: use pnpm instead of yarn * docs: readme * Revert "fix: remove useMusic hook" This reverts commit 598c33b. * feat!: support note music * fix: xlog summary cannot display * docs: breaking changes doc * ci: improve release ci * release: v4.6.6 * ci: add docker ci * feat: add `music` into `PostMeta` * docs: readme * ci: setup release env * docs: readme link
1 parent cf933ff commit 144a84b

File tree

20 files changed

+4986
-7852
lines changed

20 files changed

+4986
-7852
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
push:
88
branches:
99
- '**'
10+
paths-ignore:
11+
- README.md
12+
- LICENSE
1013
pull_request:
1114
branches: [master]
1215

@@ -16,7 +19,7 @@ jobs:
1619

1720
strategy:
1821
matrix:
19-
node-version: [16.x]
22+
node-version: [20.x]
2023

2124
steps:
2225
- uses: actions/checkout@v4
@@ -41,13 +44,13 @@ jobs:
4144
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
4245
restore-keys: |
4346
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
44-
- uses: pnpm/action-setup@v2.4.0
47+
- uses: pnpm/action-setup@v3
4548
with:
46-
version: 8.x.x
49+
version: latest
4750
run_install: true
4851
- name: Build project
4952
run: |
50-
yarn build
51-
yarn lint
53+
pnpm build
54+
pnpm lint
5255
env:
5356
CI: true

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ jobs:
4444
with:
4545
push: ${{ github.event_name != 'pull_request' }}
4646
tags: ${{ steps.meta.outputs.tags }},innei/mx-kami:latest
47-
labels: ${{ steps.meta.outputs.labels }}
47+
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/nextjs_bundle_analysis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- main # change this if your default branch is named differently
88
- master
99
- dev
10+
paths-ignore:
11+
- README.md
12+
- LICENSE
1013
workflow_dispatch:
1114

1215
defaults:
@@ -23,15 +26,15 @@ jobs:
2326
- name: Install Node.js
2427
uses: actions/setup-node@v3
2528
with:
26-
node-version: 18
29+
node-version: '20.x'
2730

2831
# If pnpm is used, you need to switch the previous step with the following one. pnpm does not create a package-lock.json
2932
# so the step above will fail to pull dependencies
3033
- uses: pnpm/action-setup@v2
3134
name: Install pnpm
3235
id: pnpm-install
3336
with:
34-
version: 8
37+
version: latest
3538
run_install: true
3639

3740
- name: Restore next build

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66

77
name: Release
88

9+
permissions:
10+
write-all
11+
912
jobs:
1013
build:
1114
name: Upload Release Asset
@@ -22,7 +25,7 @@ jobs:
2225

2326
- uses: actions/setup-node@v3
2427
with:
25-
node-version: 16.x
28+
node-version: 20.x
2629

2730
- name: Cache pnpm modules
2831
uses: actions/cache@v3
@@ -34,9 +37,9 @@ jobs:
3437
restore-keys: |
3538
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
3639
37-
- uses: pnpm/action-setup@v2.4.0
40+
- uses: pnpm/action-setup@v3
3841
with:
39-
version: 8.x.x
42+
version: latest
4043
run_install: true
4144

4245
- name: Build project
@@ -53,8 +56,8 @@ jobs:
5356
- name: Create Release
5457
id: create_release
5558
uses: actions/create-release@v1
56-
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
# env:
60+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5861
with:
5962
tag_name: ${{ github.ref }}
6063
release_name: Release ${{ github.ref }}
@@ -67,8 +70,6 @@ jobs:
6770
- name: Upload Release Asset
6871
id: upload-release-asset
6972
uses: actions/upload-release-asset@v1
70-
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7273
with:
7374
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
7475
asset_path: ./release.zip

0 commit comments

Comments
 (0)