mirror of
https://github.com/konpa/devicon.git
synced 2025-08-06 22:57:02 +02:00
automate workflow for npm publish (#497)
* setup npm_publish workflow and update package.json with new repo info * refactoring npm publish workflow to reduce dependencies * npm publish to 2.9.0 * reduce npm publish workflow to publishing task only * npm publish to 2.9.0 * testing npm publish * update npm version to 2.9.0 (latest release) * enhance CONTRIBUTING.md with sentence about npm release workflow
This commit is contained in:
21
.github/workflows/npm_publish.yml
vendored
Normal file
21
.github/workflows/npm_publish.yml
vendored
Normal file
@@ -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 }}
|
@@ -259,4 +259,5 @@ As an example, let's assume you have created the svgs for Redhat and Amazon Web
|
|||||||
<li>Ensure code quality is up to standard</li>
|
<li>Ensure code quality is up to standard</li>
|
||||||
<li>Upload svgs to <a href="https://icomoon.io/app/#/select">icomoon.io</a> and take a screenshot to check that it looks good.
|
<li>Upload svgs to <a href="https://icomoon.io/app/#/select">icomoon.io</a> and take a screenshot to check that it looks good.
|
||||||
<li>Comment on the PR so maintainers don't have to manually upload icon result.</li>
|
<li>Comment on the PR so maintainers don't have to manually upload icon result.</li>
|
||||||
|
<li>Publishing a new release to <a href="https://www.npmjs.com/package/devicon">npm</a>; See <a href="https://github.com/devicons/devicon/issues/288">#288</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "devicon",
|
"name": "devicon",
|
||||||
"version": "2.2.0",
|
"version": "2.9.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
10
package.json
10
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "devicon",
|
"name": "devicon",
|
||||||
"version": "2.2.0",
|
"version": "2.9.0",
|
||||||
"description": "Programming related icons collection",
|
"description": "Programming related icons collection",
|
||||||
"main": "devicon.min.css",
|
"main": "devicon.min.css",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/konpa/devicon.git"
|
"url": "https://github.com/devicons/devicon.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"programming",
|
"programming",
|
||||||
@@ -18,12 +18,12 @@
|
|||||||
"svg",
|
"svg",
|
||||||
"font"
|
"font"
|
||||||
],
|
],
|
||||||
"author": "konpa",
|
"author": "devicons",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"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": {
|
"devDependencies": {
|
||||||
"gulp": "^4.0.0",
|
"gulp": "^4.0.0",
|
||||||
"gulp-sass": "^4.1.0",
|
"gulp-sass": "^4.1.0",
|
||||||
|
Reference in New Issue
Block a user