Skip to content

Commit 3cd00f8

Browse files
authored
GitHub action for NPM Package (#15)
* 1.2.0 * Add Gtihub Action for NPM
1 parent 8f9ec59 commit 3cd00f8

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: NPM Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Pubish
11+
runs-on: ubuntu-latest,
12+
steps:
13+
- name: ⏬ checkout
14+
uses: actions/[email protected]
15+
- name: 📦 Node
16+
uses: actions/[email protected]
17+
with:
18+
node-version: 12
19+
registry-url: https://registry.npmjs.org
20+
- name: 🚀 Publish
21+
run: npm publish --access publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mongoose-schema-cli",
3-
"version": "1.1.1",
3+
"version": "1.2.0",
44
"description": "A MongoDB Schema Generator CLI",
55
"main": "index.js",
66
"files": [

0 commit comments

Comments
 (0)