Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 533ea3d

Browse files
committed
Added workflow
1 parent e8a4ce0 commit 533ea3d

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: NPM Publish
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
npm-publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: "16.x"
14+
registry-url: "https://registry.npmjs.org"
15+
16+
- name: 📦 Install dependencies
17+
run: npm ci
18+
19+
- name: 🚀 Publish package to NPM
20+
run: npm publish --access public
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "custom-electron-titlebar",
3-
"version": "4.0.1",
3+
"version": "4.1.0",
44
"description": "Custom Electron Titlebar is a library for electron that allows you to configure a fully customizable title bar.",
55
"exports": {
66
".": "./dist/index.js",
@@ -9,9 +9,11 @@
99
"types": "dist/index.d.ts",
1010
"type": "commonjs",
1111
"scripts": {
12+
"build:develop": "webpack --mode=development",
1213
"build": "webpack --mode=production",
1314
"example": "electron example/main.js",
14-
"start": "npm run build && npm run example"
15+
"start": "npm run build:develop && npm run example",
16+
"prepare": "npm run build"
1517
},
1618
"author": "AlexTorresSk <alextorressk@gmail.com>",
1719
"license": "MIT",
@@ -53,4 +55,4 @@
5355
"webpack": "^5.67.0",
5456
"webpack-cli": "^4.9.1"
5557
}
56-
}
58+
}

0 commit comments

Comments
 (0)