Skip to content

Commit

Permalink
- [Release] Version 0.9.2
Browse files Browse the repository at this point in the history
- Disable NPM publish step in publish action
- Add some shields to readme
  • Loading branch information
ash0x0 committed Jun 13, 2021
1 parent 1b414d5 commit 85d68f9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Publish
on:
workflow_dispatch:
release:
push:
tags:
Expand Down Expand Up @@ -30,26 +29,21 @@ jobs:
- name: Setup Linux Dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157
sudo apt-get update -qq
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update -qq
sudo apt-get install -y software-properties-common gcc-5 g++-5 libx11-dev libxtst-dev libxt-dev libx11-xcb-dev libxkbcommon-dev libxkbcommon-x11-dev xorg-dev libxcb-xkb-dev libxkbfile-dev libxinerama-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
sudo apt-get install -y software-properties-common libx11-dev libxtst-dev libxt-dev libx11-xcb-dev libxkbcommon-dev libxkbcommon-x11-dev xorg-dev libxcb-xkb-dev libxkbfile-dev libxinerama-dev
- name: Install Packages
run: npm i --ignore-scripts

- name: Build & Publish Prebuilds
run: npm run build:ci -- --msvs_version=2019
if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/')
env:
ARCH: ${{ matrix.arch }}
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish NPM Package
if: startsWith(matrix.os, 'ubuntu')
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
# Enable this step once there's a publish token in repo secrets
# - name: Publish NPM Package
# if: startsWith(github.ref, 'refs/tags/') && startsWith(matrix.os, 'ubuntu')
# run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# iohook

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![NPM version](https://img.shields.io/npm/v/iohook?color=%230088FF)](https://www.npmjs.com/package/iohook)
[![Release date](https://img.shields.io/github/release-date/wilix-team/iohook?color=%230088FF)](https://github.com/wilix-team/iohook/releases/latest)
[![GitHub Super-Linter](https://github.com/wilix-team/iohook/workflows/Lint%20Code%20Base/badge.svg)](https://github.com/marketplace/actions/super-linter)
[![Publish workflow](https://github.com/wilix-team/iohook/actions/workflows/publish.yml/badge.svg)](https://github.com/wilix-team/iohook/actions/workflows/publish.yml)
[![Publish](https://github.com/wilix-team/iohook/actions/workflows/publish.yml/badge.svg)](https://github.com/wilix-team/iohook/actions/workflows/publish.yml)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?color=%23008880)](https://github.com/prettier/prettier)
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/iohookjs/Lobby)
[![NPM version](https://img.shields.io/npm/v/iohook.svg)](https://www.npmjs.com/package/iohook)
[![Issues](https://img.shields.io/github/issues-raw/wilix-team/iohook)](https://github.com/wilix-team/iohook/issues)

## About

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iohook",
"version": "0.9.1",
"version": "0.9.2",
"description": "Node.js global keyboard and mouse hook",
"author": "Aloyan Dmitry",
"license": "MIT",
Expand Down

0 comments on commit 85d68f9

Please sign in to comment.