Skip to content

Commit

Permalink
fix: update build action
Browse files Browse the repository at this point in the history
  • Loading branch information
wbeuil committed Nov 3, 2023
1 parent a5d52d1 commit 94258f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
sudo apt-get install -y clang cmake libprotobuf-dev protobuf-compiler
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 20

- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install and build
run: npm install && npm run build
Expand All @@ -51,7 +51,7 @@ jobs:
run: npm run test

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: cld3-${{ env.arch }}.node
path: addons/cld3-${{ env.arch }}.node
Expand All @@ -61,24 +61,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download Linux bindings
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: cld3-linux-x64.node
path: addons/

- name: Download Macos bindings
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: cld3-darwin-x64.node
path: addons/

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org

- name: Install NPM dependencies
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cld3",
"description": "Unofficial Node.js bindings for Compact Language Detector v3 (CLD3)",
"version": "2.0.0",
"version": "2.0.3",
"main": "index.js",
"type": "module",
"scripts": {
Expand Down

0 comments on commit 94258f4

Please sign in to comment.