Skip to content

Commit 2f46381

Browse files
fix: add repository field to platform packages for provenance
1 parent 0d40e4c commit 2f46381

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,21 @@ jobs:
115115
cd native
116116
pnpm napi create-npm-dirs
117117
118+
- name: Add repository to platform packages
119+
run: |
120+
cd native
121+
for pkg in npm/*/package.json; do
122+
node -e "
123+
const fs = require('fs');
124+
const pkg = JSON.parse(fs.readFileSync('$pkg', 'utf8'));
125+
pkg.repository = {
126+
type: 'git',
127+
url: 'https://github.com/productdevbook/nitro-graphql'
128+
};
129+
fs.writeFileSync('$pkg', JSON.stringify(pkg, null, 2) + '\n');
130+
"
131+
done
132+
118133
- name: Determine npm tag
119134
id: npm-tag
120135
run: |

0 commit comments

Comments
 (0)