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

Commit e72d46e

Browse files
committed
Merge pull request #6 from Kristories/develop
Update packages
2 parents 2ced92d + 63cf7f2 commit e72d46e

File tree

2 files changed

+36
-7
lines changed

2 files changed

+36
-7
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: NPM Publisher
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup Node
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 12
16+
registry-url: https://registry.npmjs.org
17+
- name: Build package
18+
run: |
19+
npm install
20+
- name: Register Token
21+
run: |
22+
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > /home/runner/work/_temp/.npmrc
23+
echo "_auth=$NODE_AUTH_TOKEN" >> /home/runner/work/_temp/.npmrc
24+
echo "email=<[email protected]>" >> /home/runner/work/_temp/.npmrc
25+
echo "always-auth=true" >> /home/runner/work/_temp/.npmrc
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
28+
- name: Publish
29+
run: npm publish

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"author": "Wahyu Kristianto <[email protected]>",
77
"license": "MIT",
88
"dependencies": {
9-
"chalk": "^1.1.1",
10-
"fildes": "^1.0.5",
11-
"inquirer": "^0.11.2",
12-
"node-emoji": "^1.0.4",
13-
"os-homedir": "^1.0.1",
14-
"unirest": "^0.4.2",
15-
"vorpal": "^1.5.5",
9+
"chalk": "^2.4.2",
10+
"fildes": "^3.0.0",
11+
"inquirer": "^7.0.0",
12+
"node-emoji": "^1.10.0",
13+
"os-homedir": "^2.0.0",
14+
"unirest": "^0.6.0",
15+
"vorpal": "^1.12.0",
1616
"wordwrap": "^1.0.0"
1717
},
1818
"devDependencies": {},

0 commit comments

Comments
 (0)