chore: add node-pre-gyp dependency

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2024-10-07 00:38:20 +05:30
parent a652d4e8e6
commit b988ccdfd8
4 changed files with 27 additions and 31 deletions

View File

@@ -88,20 +88,20 @@ jobs:
npx modclean --patterns="default:*" --run
# build executables
npm run build
npm run build:pkg
ls ./dist
ls ./dist-pkg
# Move macOS executables for signing
mkdir ./mac-dist
mv ./dist/nc-secret-arm64 ./mac-dist/
mv ./dist/nc-secret-x64 ./mac-dist/
mv ./dist-pkg/nc-secret-mgr-macos-arm64 ./mac-dist/
mv ./dist-pkg/nc-secret-mgr-macos-x64 ./mac-dist/
- name: Upload executables(except mac executables) to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.NC_GITHUB_TOKEN }}
file: dist/**
file: dist-pkg/**
tag: ${{ github.event.inputs.tag || inputs.tag }}
overwrite: true
file_glob: true
@@ -124,8 +124,8 @@ jobs:
- name: Sign macOS executables
run: |
/usr/bin/codesign --force -s - ./scripts/pkg-executable/mac-dist/nc-secret-arm64 -v
/usr/bin/codesign --force -s - ./scripts/pkg-executable/mac-dist/nc-secret-x64 -v
/usr/bin/codesign --force -s - ./scripts/pkg-executable/mac-dist/nc-secret-mgr-macos-arm64 -v
/usr/bin/codesign --force -s - ./scripts/pkg-executable/mac-dist/nc-secret-mgr-macos-x64 -v
- uses: actions/upload-artifact@master
with: