diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e834e74..f3bd84e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,3 +13,10 @@ jobs: strategy: matrix: node-version: [18.x] + + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + uses: ./.github/actions/prepare-install + with: + node-version: ${{ matrix.node-version }} diff --git a/package.json b/package.json index 4a99aa7..1c3355e 100644 --- a/package.json +++ b/package.json @@ -45,22 +45,6 @@ "ci": "run-s lint:ts doctor build", "prepublishOnly": "pnpm ci" }, - "lint-staged": { - "*.{md,json}": [ - "prettier --cache --write --no-error-on-unmatched-pattern" - ], - "*.{css,less}": [ - "prettier --cache --write" - ], - "*.{js,jsx}": [ - "eslint --fix", - "prettier --cache --write" - ], - "*.{ts,tsx}": [ - "eslint --fix", - "prettier --cache --write" - ] - }, "dependencies": { "@ant-design/graphs": "^2.0.0-beta.4", "@ant-design/icons": "^5.4.0", @@ -112,6 +96,22 @@ "node": ">=18", "pnpm": ">=8" }, + "lint-staged": { + "*.{md,json}": [ + "prettier --cache --write --no-error-on-unmatched-pattern" + ], + "*.{css,less}": [ + "prettier --cache --write" + ], + "*.{js,jsx}": [ + "eslint --fix", + "prettier --cache --write" + ], + "*.{ts,tsx}": [ + "eslint --fix", + "prettier --cache --write" + ] + }, "limit-size": [ { "path": "dist/umd/index.js",