Skip to content

Commit 3620a65

Browse files
authored
chore(ci): more fixes for trusted publishing (#122)
2 parents 0ab6110 + bf5aefb commit 3620a65

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
permissions:
99
id-token: write
10-
contents: read
10+
contents: write
1111

1212
jobs:
1313
build-library:
@@ -169,6 +169,11 @@ jobs:
169169
steps:
170170
- uses: actions/checkout@v6
171171

172+
- name: Node & NPM versions
173+
run: |
174+
node --version
175+
npm --version
176+
172177
- name: Get package version
173178
id: package_version
174179
run: echo "VERSION=$(jq -r .version packages/library/package.json)" >> $GITHUB_ENV
@@ -190,4 +195,4 @@ jobs:
190195

191196
- name: Publish to NPM
192197
if: env.VERSION_EXISTS == 'false'
193-
run: npm publish --workspace=@tomplum/react-git-log --access public
198+
run: npm publish --workspace=@tomplum/react-git-log --provenance

packages/library/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"name": "@tomplum/react-git-log",
33
"author": "Thomas Plumpton",
4-
"repository": "https://github.com/TomPlum/react-git-log",
4+
"repository": {
5+
"type": "git",
6+
"url": "git+https://github.com/TomPlum/react-git-log.git"
7+
},
58
"description": "A flexible, themable, React component for visualising Git commit history, branch and tag metadata.",
69
"version": "3.5.1",
710
"license": "Apache-2.0",

0 commit comments

Comments
 (0)