Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:

jobs:
create-release:
if: github.event_name == 'release'
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
Expand Down Expand Up @@ -70,6 +71,7 @@ jobs:
prerelease: false

build-and-publish:
if: github.event_name == 'release'
needs: create-release
runs-on: ubuntu-latest

Expand Down Expand Up @@ -130,6 +132,7 @@ jobs:
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); }"

publish-npm:
if: github.event_name == 'release'
needs: build-and-publish
runs-on: ubuntu-latest

Expand Down Expand Up @@ -161,6 +164,7 @@ jobs:
cp _build/liblibCacheSim.a libCacheSim-node/vendor/
cp -r libCacheSim/include/* libCacheSim-node/vendor/include/


- name: Publish to NPM
working-directory: libCacheSim-node
run: npm publish --access public
Expand Down