Skip to content

Commit

Permalink
feat!: be compatible with the latest backend (#1762)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
wibus-wee authored Jul 9, 2024
1 parent cf933ff commit 144a84b
Show file tree
Hide file tree
Showing 20 changed files with 4,986 additions and 7,852 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
push:
branches:
- '**'
paths-ignore:
- README.md
- LICENSE
pull_request:
branches: [master]

Expand All @@ -16,7 +19,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -41,13 +44,13 @@ jobs:
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- uses: pnpm/action-setup@v2.4.0
- uses: pnpm/action-setup@v3
with:
version: 8.x.x
version: latest
run_install: true
- name: Build project
run: |
yarn build
yarn lint
pnpm build
pnpm lint
env:
CI: true
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }},innei/mx-kami:latest
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
7 changes: 5 additions & 2 deletions .github/workflows/nextjs_bundle_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- main # change this if your default branch is named differently
- master
- dev
paths-ignore:
- README.md
- LICENSE
workflow_dispatch:

defaults:
Expand All @@ -23,15 +26,15 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: '20.x'

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

- name: Restore next build
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

name: Release

permissions:
write-all

jobs:
build:
name: Upload Release Asset
Expand All @@ -22,7 +25,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x

- name: Cache pnpm modules
uses: actions/cache@v3
Expand All @@ -34,9 +37,9 @@ jobs:
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: pnpm/action-setup@v2.4.0
- uses: pnpm/action-setup@v3
with:
version: 8.x.x
version: latest
run_install: true

- name: Build project
Expand All @@ -53,8 +56,8 @@ jobs:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
Expand All @@ -67,8 +70,6 @@ jobs:
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./release.zip
Expand Down
Loading

0 comments on commit 144a84b

Please sign in to comment.