ci(js): sed workdir, enable mac build

This commit is contained in:
əlemi 2024-09-09 22:54:08 +02:00
parent decbda1bc8
commit 01f2d70ddb
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 4 additions and 5 deletions

View file

@ -20,10 +20,8 @@ jobs:
target: linux-x64-gnu target: linux-x64-gnu
- runner: windows-latest - runner: windows-latest
target: win32-x64 target: win32-x64
#- runner: macos-14 - runner: macos-14
# target: darwin-arm64 target: darwin-arm64
#- runner: macos-12
# target: darwin-64
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
@ -79,6 +77,7 @@ jobs:
# so we just sed out before releasing. this is really ugly but if it works right now i'll just # so we just sed out before releasing. this is really ugly but if it works right now i'll just
# take it and think again about it later # take it and think again about it later
- run: sed -i 's/"@codemp\/native"/"codemp"/' package.json - run: sed -i 's/"@codemp\/native"/"codemp"/' package.json
working-directory: dist/js/publish
- run: npm publish - run: npm publish
working-directory: dist/js/publish working-directory: dist/js/publish
env: env:

View file

@ -1,6 +1,6 @@
{ {
"name": "@codemp/native", "name": "@codemp/native",
"version": "0.0.6", "version": "0.0.7",
"devDependencies": { "devDependencies": {
"@napi-rs/cli": "^2.18.4" "@napi-rs/cli": "^2.18.4"
}, },