Skip to content

Commit

Permalink
fix GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mharj committed Oct 31, 2024
1 parent e428171 commit 423efdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:

- name: Run and publish code coverage
if: |
github.ref == 'refs/heads/main' &&
github.ref == 'refs/heads/master' &&
env.CC_TEST_REPORTER_ID != '' &&
env.HAVE_COVERAGE_SCRIPT == 'true'
uses: paambaati/[email protected]
Expand All @@ -77,7 +77,7 @@ jobs:
- name: Publish ${{env.PACKAGE_NAME}} ${{env.PACKAGE_VERSION}}
run: ${{ env.NPM }} publish --no-git-checks --access public
if: |
github.ref == 'refs/heads/main' &&
github.ref == 'refs/heads/master' &&
env.NPM_TOKEN != '' &&
env.PACKAGE_VERSION != env.NPM_VERSION
env:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"prepublishOnly": "npm run test && npm run build",
"test": "vitest test --run --no-isolate --coverage",
"coverage": "vitest test --run --no-isolate --reporter=dot --coverage --coverage.reporter=lcov",
"lint": "eslint . --ext .ts"
"lint": "eslint . --ext .ts",
"validate": "tsc --noEmit"
},
"mocha": {
"exit": true,
Expand Down

0 comments on commit 423efdc

Please sign in to comment.