Skip to content

Commit 2680a27

Browse files
authored
add npm publish script + change the package name to @mergeability/mergeable (#569)
1 parent a9e99c0 commit 2680a27

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish NPM package
2+
3+
on:
4+
push:
5+
branches: ['master']
6+
7+
jobs:
8+
build:
9+
name: publish the package to NPM
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [14.15.4]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- run: npm install
23+
- uses: JS-DevTools/npm-publish@v1
24+
with:
25+
token: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "mergeable",
2+
"name": "@mergeability/mergeable",
33
"version": "2.0.0",
44
"description": "",
55
"author": "Justin Law <hello@justinlaw.org> (https://github.io/mergeability/mergeable), Shine Lee <aungshine@gmail.com>",

0 commit comments

Comments
 (0)