Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ name: Lint
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_call:

jobs:
macos-browser-test:
runs-on: macos-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
Expand All @@ -31,7 +30,6 @@ jobs:
runs-on: windows-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@ permissions:
contents: read

jobs:
lint:
uses: ./.github/workflows/lint.yml

publish:
needs: [lint]
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
id-token: write
Comment on lines +21 to +22
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

publish job adds pull-requests: write (and repeats id-token: write) permissions, but this workflow only checks out the repo and runs npm publish on push to main. Unless a later step actually writes PR comments/metadata (or you are using an OIDC-based publish flow that needs id-token), these extra permissions expand the token’s scope unnecessarily. Consider removing pull-requests: write (and any other unused permissions) to follow least-privilege.

Suggested change
pull-requests: write
id-token: write

Copilot uses AI. Check for mistakes.
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Create Next2D apps with no build configuration.
## Quick Start

```sh
npx create-next2d-app sample-app
npx create-next2d-app sample-app --template @next2d/framework-template
cd sample-app
npm start
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@next2d/framework-template",
"description": "Next2D Framework default JavaScript template.",
"version": "5.0.0",
"version": "5.0.1",
"homepage": "https://next2d.app",
"bugs": "https://github.com/Next2D/framework-template/issues/new",
"author": "Toshiyuki Ienaga<ienaga@next2d.app>",
Expand Down
20 changes: 10 additions & 10 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
"generate": "npx @next2d/view-generator"
},
"devDependencies": {
"@capacitor/android": "^8.0.2",
"@capacitor/cli": "^8.0.2",
"@capacitor/core": "^8.0.2",
"@capacitor/ios": "^8.0.2",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.2",
"@next2d/vite-plugin-next2d-auto-loader": "^3.1.12",
"@capacitor/android": "^8.1.0",
"@capacitor/cli": "^8.1.0",
"@capacitor/core": "^8.1.0",
"@capacitor/ios": "^8.1.0",
"@eslint/eslintrc": "^3.3.4",
"@eslint/js": "^10.0.1",
"@next2d/vite-plugin-next2d-auto-loader": "^3.1.13",
"@vitest/web-worker": "^4.0.18",
"eslint": "^9.39.2",
"globals": "^17.3.0",
"jsdom": "^28.0.0",
"eslint": "^10.0.2",
"globals": "^17.4.0",
"jsdom": "^28.1.0",
"vite": "^7.3.1",
"vitest": "^4.0.18",
"vitest-webgl-canvas-mock": "^1.1.0"
Expand Down