diff --git a/.github/workflows/npm_publish.yml b/.github/workflows/npm_publish.yml
new file mode 100644
index 000000000..dfcadfdb6
--- /dev/null
+++ b/.github/workflows/npm_publish.yml
@@ -0,0 +1,21 @@
+on:
+ release:
+ types: [released]
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ # "ref" specifies the branch to check out.
+ # "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
+ ref: ${{ github.event.release.target_commitish }}
+ - name: Use Node.js 12
+ uses: actions/setup-node@v1
+ with:
+ node-version: 12
+ registry-url: https://registry.npmjs.org/ # Specifies the registry, this field is required!
+ - run: npm ci
+ - run: npm publish
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f560885d1..81d5ca3d5 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -259,4 +259,5 @@ As an example, let's assume you have created the svgs for Redhat and Amazon Web
Ensure code quality is up to standard
Upload svgs to icomoon.io and take a screenshot to check that it looks good.
Comment on the PR so maintainers don't have to manually upload icon result.
+ Publishing a new release to npm; See #288
diff --git a/package-lock.json b/package-lock.json
index f995f26eb..4945858d5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "devicon",
- "version": "2.2.0",
+ "version": "2.9.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index cdbe8970d..6f1111da0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "devicon",
- "version": "2.2.0",
+ "version": "2.9.0",
"description": "Programming related icons collection",
"main": "devicon.min.css",
"scripts": {
@@ -10,7 +10,7 @@
},
"repository": {
"type": "git",
- "url": "https://github.com/konpa/devicon.git"
+ "url": "https://github.com/devicons/devicon.git"
},
"keywords": [
"programming",
@@ -18,12 +18,12 @@
"svg",
"font"
],
- "author": "konpa",
+ "author": "devicons",
"license": "MIT",
"bugs": {
- "url": "https://github.com/konpa/devicon/issues"
+ "url": "https://github.com/devicons/devicon/issues"
},
- "homepage": "http://konpa.github.io/devicon/",
+ "homepage": "https://devicon.dev",
"devDependencies": {
"gulp": "^4.0.0",
"gulp-sass": "^4.1.0",