Skip to content

Commit b045a13

Browse files
workflow action trigger only on release, added badges in readme
1 parent e833c8e commit b045a13

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
33

4-
name: Node.js Package
4+
name: npm-publish
55

66
on:
7-
push:
8-
branch: main
7+
release:
8+
type: [created]
99

1010
jobs:
1111
build:

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# css-only-tooltip
2+
3+
[![Node.js Package](https://github.com/thoughtlessmind/css-only-tooltip/workflows/Node.js%20Package/badge.svg)](https://github.com/thoughtlessmind/css-only-tooltip)
4+
[![NPM downloads](https://badgen.net/npm/dm/css-only-tooltip?icon=npm)](https://www.npmjs.com/package/css-only-tooltip)
5+
[![jsDelivr Hits](https://badgen.net/jsdelivr/hits/gh/css-only-tooltip/dist/styles.min.css/green)](https://cdn.jsdelivr.net/npm/css-only-tooltip@latest/dist/styles.min.css)
6+
[![License](https://badgen.net/npm/license/css-only-tooltip)](https://github.com/thoughtlessmind/css-only-tooltip/blob/main/LICENSE)
7+
![minified size](https://badgen.net/bundlephobia/min/css-only-tooltip?color=pink)
8+
[![npm version](https://badgen.net/npm/v/css-only-tooltip)](https://www.npmjs.com/package/css-only-tooltip)
9+
210
A very lightweight tooltip utitlity library, made using only `CSS`.
311

412
## Insatallation

0 commit comments

Comments
 (0)