diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..a8b390d --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,27 @@ +name: Publish npm package + +on: + push: + branches: [ "main" ] + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Configure Node + uses: actions/setup-node@v3 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' + + - name: Publish tag on npm + run: | + npm ci + npm run build + # npm run test:coverage + npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index e35ad72..11fda1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # changelog +## 2023-11-13 + +### 0.3.1 + +- Merged PR #12 from @khill-fbmc fixing errors in index.d.ts +- Some dependency version bumps, it compiles again under node 18. +- Added GitHub Action to ease release process + +I'll try to streamline more the changes we receive, let me know if anything needs +immediate attention. + ## 2022-04-17 ### 0.3.0 diff --git a/package.json b/package.json index 4186c71..90e062c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-libgpiod", - "version": "0.3.0", + "version": "0.3.1", "author": { "name": "Leonardo Silveira", "email": "sombriks@gmail.com", @@ -22,8 +22,8 @@ "test": "mocha" }, "devDependencies": { - "mocha": "^2.2.5", - "node-gyp": "^3.8.0" + "mocha": "10.1.0", + "node-gyp": "^10.0.1" }, "dependencies": { "bindings": "^1.3.0",