Skip to content

Commit 0eb01a9

Browse files
committed
fix(ci): prevent npm package packing of temporary tgz and package files during publish
1 parent 9e89b63 commit 0eb01a9

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ jobs:
109109
else
110110
echo "No harmony/pushy.har found in previous release or fetch failed."
111111
fi
112+
# Clean up temporary pack and extraction files to prevent publishing them
113+
rm -rf react-native-update-${PREV_VERSION}.tgz package || true
112114
- name: Publish to npm
113115
shell: bash
114116
run: |

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,6 @@ harmony/pushy/src/main/cpp/android-generated
7373
**/ios/.xcode.env.local
7474
.bun-cache
7575
.ohpm-cache
76+
*.tgz
77+
package
78+

.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,8 @@ babel.config.js
8282
tsconfig.json
8383
bunfig.toml
8484

85+
# Ignore temporary files created by npm pack during CI builds
86+
*.tgz
87+
package
88+
8589

0 commit comments

Comments
 (0)