Skip to content

Commit d458fd4

Browse files
committed
Fix CI workflow and dependency issues
- Updated package.json with author information - Fixed GitHub Actions workflows to handle secret access properly - Removed invalid 'meterEventName' property from basic usage example - Synchronized package-lock.json with package.json
1 parent dde7987 commit d458fd4

File tree

5 files changed

+359
-356
lines changed

5 files changed

+359
-356
lines changed

.github/workflows/ci.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ jobs:
3939
- name: Upload coverage reports to Codecov
4040
uses: codecov/codecov-action@v3
4141
with:
42-
token: ${{ secrets.CODECOV_TOKEN }}
4342
directory: ./coverage/
4443
flags: unittests
4544
fail_ci_if_error: false
45+
# Only run this step if the CODECOV_TOKEN secret is available
46+
if: github.repository == 'copyleftdev/api-metering-libary' && github.event_name != 'pull_request'
47+
env:
48+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ jobs:
6767
run: npm publish
6868
env:
6969
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
70+
if: github.repository == 'copyleftdev/api-metering-libary'

0 commit comments

Comments
 (0)