diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e07381ca4..3edadc51b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,11 @@ on: release: types: - published + +permissions: + id-token: write # Required for OIDC trusted publishing + contents: read + jobs: ci: uses: ./.github/workflows/check-pull-request.yml @@ -44,5 +49,3 @@ jobs: - name: Publish run: ./scripts/publish-package.sh "${{ github.event.release.tag_name }}" "${{ github.event.release.prerelease }}" - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index a96a7f962..f79fac52d 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/DEFRA/forms-engine-plugin.git" + "url": "https://github.com/DEFRA/forms-engine-plugin" }, "overrides": { "serve-handler": {