Skip to content

Commit 6050e7b

Browse files
authored
Merge pull request #332 from DEFRA/trusted-publishing
use trusted publishing, not npm tokens
2 parents 1c34295 + 407c32f commit 6050e7b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
release:
44
types:
55
- published
6+
7+
permissions:
8+
id-token: write # Required for OIDC trusted publishing
9+
contents: read
10+
611
jobs:
712
ci:
813
uses: ./.github/workflows/check-pull-request.yml
@@ -44,5 +49,3 @@ jobs:
4449

4550
- name: Publish
4651
run: ./scripts/publish-package.sh "${{ github.event.release.tag_name }}" "${{ github.event.release.prerelease }}"
47-
env:
48-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
},
6868
"repository": {
6969
"type": "git",
70-
"url": "git+https://github.com/DEFRA/forms-engine-plugin.git"
70+
"url": "https://github.com/DEFRA/forms-engine-plugin"
7171
},
7272
"overrides": {
7373
"serve-handler": {

0 commit comments

Comments
 (0)