Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [created]

permissions:
id-token: write # Required for OIDC
id-token: write # Required for OIDC provenance
contents: read

jobs:
Expand All @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: "22"
- run: npm install --package-lock=false
- run: npm test

Expand All @@ -26,9 +26,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
node-version: "22"
registry-url: "https://registry.npmjs.org"
- name: Update npm
run: npm install -g npm@10.9.8
run: npm install -g npm@11.5.1
- run: npm --version
- run: npm install --package-lock=false
- run: npm publish --access public
- run: npm publish
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"license": "SEE LICENSE IN LICENSE.txt",
"repository": {
"type": "git",
"url": "https://github.com/garmin/fit-javascript-sdk"
"url": "git+https://github.com/garmin/fit-javascript-sdk.git"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes a warning within the building/publishing

},
"files": [
"src/"
Expand Down
Loading