From 85d68f94833dc948e4f7b271c4980884c4043eda Mon Sep 17 00:00:00 2001 From: Ahmed Elshafey <12426718+ash0x0@users.noreply.github.com> Date: Sun, 13 Jun 2021 18:44:06 +0200 Subject: [PATCH] - [Release] Version 0.9.2 - Disable NPM publish step in publish action - Add some shields to readme --- .github/workflows/publish.yml | 22 ++++++++-------------- README.md | 8 +++++--- package.json | 2 +- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 57a7f19a..6a3a2c83 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,5 @@ name: Publish on: - workflow_dispatch: release: push: tags: @@ -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 }} diff --git a/README.md b/README.md index 5a575abb..cd93adec 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index aa4876e8..18f9fe22 100644 --- a/package.json +++ b/package.json @@ -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",