Skip to content

Commit

Permalink
Updates to actions and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sirfergy authored and rzr committed Feb 7, 2025
1 parent 49a889e commit 2f213bd
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/nodepackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest, macos-latest, windows-2019]
node: [12, 14, 16, 18]
os: [ubuntu-20.04, ubuntu-latest, macos-latest, windows-latest]
node: [16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.13'
- name: Install dependencies (ubuntu-latest)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
Expand All @@ -47,9 +47,9 @@ jobs:
- name: ⬇️ Checkout code
uses: actions/checkout@v3
- name: 💽 Setup nodejs
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '20'
- name: 📇 Use npm cache
uses: c-hive/gha-npm-cache@v1
- name: Install dependencies (ubuntu-latest)
Expand All @@ -68,4 +68,4 @@ jobs:
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
file: .nyc_output/lcov.info
file: .nyc_output/lcov.info
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
name: npm-publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
- id: log
run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)"
- if: "contains(steps.log.outputs.message, 'Release ')"
uses: actions/setup-node@master
uses: actions/setup-node@v4
with:
node-version: 16.0.0
- if: "contains(steps.log.outputs.message, 'Release ')"
Expand All @@ -23,4 +23,4 @@ jobs:
commit_pattern: "^Release (\\S+)"
env: # More info about the environment variables in the README
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
18 changes: 9 additions & 9 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ jobs:
matrix:
include:
- name: darwin
os: macos-11
os: macos-13
node: x64
- name: linux
os: ubuntu-latest
- name: win32
os: windows-2019
os: windows-latest
name: Build ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- if: matrix.node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 14.x
node-version: 20
architecture: ${{ matrix.node }}
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.13'
- uses: actions/checkout@v3
- name: Install dependencies (ubuntu-latest)
# Use g++-9 only on versions after 'ubuntu-18.04'
Expand All @@ -46,7 +46,7 @@ jobs:
- run: npm install --ignore-scripts
- run: npm run prebuild-${{ matrix.name }}
- run: tar -zcvf ${{ matrix.name }}.tar.gz -C prebuilds .
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: ${{ matrix.name }}.tar.gz
Expand All @@ -58,11 +58,11 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
path: artifacts
- uses: docker://antonyurchenko/git-release:v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: artifacts/*/*.tar.gz
args: artifacts/*/*.tar.gz
2 changes: 1 addition & 1 deletion lib/win/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'msvs_target_platform_version':'10.0.18362.0',
'msvs_target_platform_minversion':'10.0.18362.0',
'conditions': [
['OS=="win"', { 'defines': [ '_HAS_EXCEPTIONS=1' ] }]
['OS=="win"', { 'defines': [ '_HAS_EXCEPTIONS=1', 'NAPI_CPP_EXCEPTIONS=1' ] }]
],
}
]
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"types": "./index.d.ts",
"gypfile": true,
"engines": {
"node": ">=6"
"node": ">=16"
},
"os": [
"darwin",
Expand All @@ -37,8 +37,8 @@
"dependencies": {
"debug": "^4.3.4",
"napi-thread-safe-callback": "^0.0.6",
"node-addon-api": "^4.3.0",
"node-gyp-build": "^4.5.0"
"node-addon-api": "^8.3.0",
"node-gyp-build": "^4.8.4"
},
"optionalDependencies": {
"@abandonware/bluetooth-hci-socket": "^0.5.3-11"
Expand All @@ -53,9 +53,9 @@
"eslint-plugin-n": "^15.6.0",
"eslint-plugin-promise": "^6.1.1",
"mocha": "^10.2.0",
"node-gyp": "^9.3.1",
"node-gyp": "^11.0.0",
"nyc": "^15.1.0",
"prebuildify": "^5.0.1",
"prebuildify": "^6.0.1",
"prebuildify-ci": "^1.0.5",
"prettier": "^2.8.1",
"proxyquire": "^2.1.3",
Expand Down Expand Up @@ -85,4 +85,4 @@
4
]
}
}
}

0 comments on commit 2f213bd

Please sign in to comment.