Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test release strategy #13

Merged
merged 3 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-libgpiod",
"version": "0.3.0",
"version": "0.3.1",
"author": {
"name": "Leonardo Silveira",
"email": "sombriks@gmail.com",
Expand All @@ -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",
Expand Down