Skip to content

Commit

Permalink
try local
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-page committed May 12, 2024
1 parent 5990beb commit eaa16aa
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,12 @@ jobs:
branch: jse
- run: swig -version
# build x86_64 version, test, pack, package and native module
- run: npm i -g node-pre-gyp-github @mapbox/node-pre-gyp
- run: npm i -g @mapbox/node-pre-gyp
- run: npm i --ignore-scripts
- name: hack source
run: |
THEBIN="$(which node-pre-gyp-github)"
THEFILE="$(dirname $THEBIN)/../index.js"
echo $THEBIN
echo $THEFILE
sed -i 's/{data}/data/g' $THEFILE
cat $THEFILE
- run: npm i --ignore-scripts
sed -i 's/{data}/data/g' node_modules/node-pre-gyp-github/index.js
cat node_modules/node-pre-gyp-github/index.js
- run: node-pre-gyp rebuild
- run: npm run test
- run: node-pre-gyp package
Expand All @@ -55,7 +51,7 @@ jobs:
body: "@${{ github.repository }} ${{ env.PACKAGE_VERSION }}"
draft: false
prerelease: false
- run: NODE_PRE_GYP_GITHUB_TOKEN=$NODE_AUTH_TOKEN node-pre-gyp-github publish --release
- run: NODE_PRE_GYP_GITHUB_TOKEN=$NODE_AUTH_TOKEN ./node_modules/node-pre-gyp-github/bin/node-pre-gyp-github publish --release
- run: rm dist/pjsua2.node
- run: npm pack
- run: npm publish
Expand Down

0 comments on commit eaa16aa

Please sign in to comment.