diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d9eeb544..fd3c17ed 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,7 +13,7 @@ jobs: name: preliminary-checks runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Ensure version is properly set run: | test "$(npm -s run get-version)" = "${{ github.event.inputs.tag }}" @@ -24,9 +24,9 @@ jobs: runs-on: ubuntu-latest needs: check steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 # Setup .npmrc file to publish to GitHub Packages - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: '22' registry-url: 'https://npm.pkg.github.com' @@ -37,18 +37,19 @@ jobs: publish-npm: runs-on: ubuntu-latest needs: check + permissions: + id-token: write + contents: read environment: npmjs steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 # Setup .npmrc file to publish to npmjs.org - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: '22' + node-version: '24' registry-url: 'https://registry.npmjs.org' - run: npm install - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm publish --access public release-github: runs-on: ubuntu-latest needs: diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index d0e49e89..1d66f38c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -12,8 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version: '22' cache: 'npm' diff --git a/package.json b/package.json index 8f98d77b..f1b3a385 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,10 @@ "sourceMap": true, "instrument": true }, - "repository": "git://github.com/scality/hdclient.git ", + "repository": { + "type": "git", + "url": "https://github.com/scality/hdclient.git" + }, "author": "Maxime Lubin", "dependencies": { "httpagent": "github:scality/httpagent#1.1.0",