From a513c311f8f820df01775363be5dfa337fc3b3ae Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 26 Jul 2024 10:10:18 +0800 Subject: [PATCH 1/3] 0.1.0-beta.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3142521..c7b4818 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-safe-lazy", - "version": "0.0.0", + "version": "0.1.0-beta.0", "description": "Safely use `React.lazy` with retry and reload strategies.", "main": "dist/index.js", "module": "dist/index.js", From 70cf6081b27b96644994d130081abcd8375a76ed Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 26 Jul 2024 11:35:30 +0800 Subject: [PATCH 2/3] ci: init workflows --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ package.json | 7 ++++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ea03893 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: Main + +on: + push: + branches: + - master + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + main: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node and pnpm + uses: silverhand-io/actions-node-pnpm-run-steps@v5 + + - name: Lint + run: pnpm lint + + - name: Test + run: pnpm run test --coverage + + - name: Build + run: pnpm build + + - name: CodeCov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true diff --git a/package.json b/package.json index c7b4818..27e6d5d 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,12 @@ "module": "dist/index.js", "types": "dist/index.d.ts", "type": "module", + "author": "Silverhand Inc. ", + "homepage": "https://github.com/silverhand-io/react-safe-lazy", + "repository": { + "type": "git", + "url": "git+https://github.com/silverhand-io/react-safe-lazy.git" + }, "scripts": { "build": "vite build", "lint": "eslint src --ext .ts,.tsx", @@ -19,7 +25,6 @@ "retry", "reload" ], - "author": "", "license": "MIT", "devDependencies": { "@silverhand/eslint-config": "^6.0.1", From fbdfba0f7e13b572902e7e7ae64fca7bad17e94f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 26 Jul 2024 03:35:42 +0000 Subject: [PATCH 3/3] Add renovate.json --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..5db72dd --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ] +}