Skip to content

fix: Use Object.hasOwn instead of Object.prototype.hasOwnProperty #45

fix: Use Object.hasOwn instead of Object.prototype.hasOwnProperty

fix: Use Object.hasOwn instead of Object.prototype.hasOwnProperty #45

Workflow file for this run

name: Test or Release
on:
push:
branches:
- master
tags-ignore:
- '**'
paths-ignore:
- '**/*.md'
- LICENSE
pull_request:
jobs:
test-or-release:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- run: pnpm i --frozen-lockfile --no-verify-store-integrity
- run: npm run build
- run: npm test
- uses: codecov/codecov-action@v4
if: ${{ github.ref_name == 'master' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: prantlf/publish-release-action@v1
if: ${{ github.ref_name == 'master' }}
with:
no-archives: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}