File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1414
1515jobs :
1616 create-release :
17+ if : github.event_name == 'release'
1718 runs-on : ubuntu-latest
1819 outputs :
1920 release_created : ${{ steps.release.outputs.release_created }}
7071 prerelease : false
7172
7273 build-and-publish :
74+ if : github.event_name == 'release'
7375 needs : create-release
7476 runs-on : ubuntu-latest
7577
@@ -130,6 +132,7 @@ jobs:
130132 node -e "console.log('Testing binary load...'); try { require('./index.js'); console.log('Binary loaded successfully!'); } catch(e) { console.error('Failed to load binary:', e); process.exit(1); }"
131133
132134 publish-npm :
135+ if : github.event_name == 'release'
133136 needs : build-and-publish
134137 runs-on : ubuntu-latest
135138
@@ -161,6 +164,7 @@ jobs:
161164 cp _build/liblibCacheSim.a libCacheSim-node/vendor/
162165 cp -r libCacheSim/include/* libCacheSim-node/vendor/include/
163166
167+
164168 - name : Publish to NPM
165169 working-directory : libCacheSim-node
166170 run : npm publish --access public
You can’t perform that action at this time.
0 commit comments