From 6f66c1be477e7ec35f716f84455e6f04b19cb812 Mon Sep 17 00:00:00 2001 From: "Flinders, Elijah" Date: Wed, 8 Apr 2026 10:24:10 -0600 Subject: [PATCH 1/3] Update publishing workflow --- .github/workflows/publish-npm.yml | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 38d0eeb..e44e856 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -5,7 +5,7 @@ on: types: [created] permissions: - id-token: write # Required for OIDC + id-token: write # Required for OIDC provenance contents: read jobs: @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: "24" - run: npm install --package-lock=false - run: npm test @@ -26,9 +26,9 @@ 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 install --package-lock=false - - run: npm publish --access public + - run: npm publish diff --git a/package.json b/package.json index 96d3155..4441d75 100644 --- a/package.json +++ b/package.json @@ -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" }, "files": [ "src/" From 8746d50cd8ec676edf5e7849070819ad99a9a271 Mon Sep 17 00:00:00 2001 From: "Flinders, Elijah" Date: Wed, 8 Apr 2026 10:45:52 -0600 Subject: [PATCH 2/3] Add check for npm version --- .github/workflows/publish-npm.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index e44e856..1539674 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -30,5 +30,6 @@ jobs: registry-url: "https://registry.npmjs.org" - name: Update npm run: npm install -g npm@11.5.1 + - run: npm --version - run: npm install --package-lock=false - run: npm publish From 11a4457c72363e77124e004abbb6000b84995cec Mon Sep 17 00:00:00 2001 From: "Flinders, Elijah" Date: Wed, 8 Apr 2026 10:48:47 -0600 Subject: [PATCH 3/3] Revert build to node 24 --- .github/workflows/publish-npm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 1539674..8d91d75 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: "24" + node-version: "22" - run: npm install --package-lock=false - run: npm test