diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d47b285..9092686 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,15 +13,11 @@ jobs: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} - - run: npm i - - run: npm run ci + node-version: '18.x' + - run: | + npm i + npm run ci diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2ced8f0..18c8790 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,17 +12,14 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 - - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: '18.x' registry-url: 'https://registry.npmjs.org' - - name: Build eruda-monitor - run: | + - run: | npm i npm run build - - name: Publish package on NPM - run: npm publish + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 77c5534..f47d2f1 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ [ci-url]: https://github.com/liriliri/eruda-monitor/actions/workflows/main.yml [license-image]: https://img.shields.io/npm/l/eruda-monitor.svg -Eruda plugin for fps and memory. +Eruda plugin for monitoring fps, memory and dom nodes. ## Demo diff --git a/index.html b/index.html index 955bdba..d69fed2 100644 --- a/index.html +++ b/index.html @@ -6,9 +6,21 @@