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 3142521..27e6d5d 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,17 @@ { "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", "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", 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" + ] +}