diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index a0369c72..7ae4b5dc 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -3,6 +3,7 @@ name: publish package on: release: types: [published] + workflow_dispatch: jobs: release: @@ -17,6 +18,10 @@ jobs: registry-url: https://registry.npmjs.org always-auth: true scope: '@xpadev-net' + - name: Install dependencies + run: | + npm -g install pnpm + pnpm install - name: Publish package run: npm publish env: diff --git a/package.json b/package.json index 9075d931..f73522ee 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xpadev-net/niconicomments", - "version": "0.2.57", + "version": "0.2.58", "description": "NiconiComments is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.", "main": "dist/bundle.js", "types": "dist/bundle.d.ts", diff --git a/src/@types/types.d.ts b/src/@types/types.d.ts index 0a9f46e2..9bde3a62 100755 --- a/src/@types/types.d.ts +++ b/src/@types/types.d.ts @@ -28,6 +28,7 @@ export type FormattedCommentWithFont = { flash: boolean; lineCount: number; lineOffset: number; + is_my_post: boolean; button?: ButtonParams; }; export type FormattedCommentWithSize = FormattedCommentWithFont & {