UNPKG

react-activity-detector

Version:

React Activity Detector. Detects if the user is active or idle, also includes Cross-Tab functionality

32 lines (26 loc) 614 B
name: CI-CD on: push: branches: - master jobs: deploy: name: Publish to NPM runs-on: ubuntu-latest timeout-minutes: 5 steps: - name: Checkout source uses: actions/checkout@v3 - name: Install Node uses: actions/setup-node@v3 with: node-version: 16 registry-url: https://registry.npmjs.org/ - name: Install dependencies run: npm ci - name: Build the code run: npm run build - name: Publish to NPM run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}