diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 38d0eeb..8d91d75 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: "22" - run: npm install --package-lock=false - run: npm test @@ -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 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/"