Skip to content

Commit 881c648

Browse files
ci: fix trusted publishing (#355)
* Use latest npm * Try specific npm version * Use node 24 * Re-add registry URL * Revert action version changes * temp: only publish react-native-flagsmith * fix cd * Remove temp changes and tidy * Revert checkout downgrade
1 parent 2832793 commit 881c648

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ jobs:
2020

2121
- uses: actions/setup-node@v4
2222
with:
23-
node-version: '18.x'
24-
registry-url: 'https://registry.npmjs.org'
23+
node-version-file: .nvmrc
24+
registry-url: 'https://registry.npmjs.org' # required for trusted publishing
2525

26+
# npm>=11.5.1 required for NPM trusted publishing
27+
- run: npm install -g npm@latest
2628
- run: npm i
2729
- run: npm run deploy

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: '18.x'
19+
node-version-file: .nvmrc
2020

2121
- run: npm i
2222
- run: npm run build

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

0 commit comments

Comments
 (0)