Skip to content

Commit bf2a4db

Browse files
committed
ci: update github actions workflows and scripts
1 parent a143069 commit bf2a4db

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Node.js Package
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish-plugin:
7+
runs-on: ubuntu-18.04
8+
steps:
9+
- uses: actions/checkout@master
10+
# Setup .npmrc file to publish to npm
11+
- name: Setup Node
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: '12.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
17+
- run: npm install
18+
- run: npm publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

deploy.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"main": "src/index.js",
66
"scripts": {
77
"release": "standard-version",
8-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
98
"docs:dev": "nodemon --ext md,vue,js --watch .vuepress --watch . --exec vuepress dev docs --no-cache --debug",
109
"docs:build": "vuepress build docs",
1110
"docs:build-preview": "vuepress build docs && anywhere -d docs/.vuepress/dist/"
@@ -52,10 +51,5 @@
5251
"hooks": {
5352
"commit-msg": "commitlint -e $GIT_PARAMS"
5453
}
55-
},
56-
"standard-version": {
57-
"scripts": {
58-
"posttag": "npm publish"
59-
}
6054
}
6155
}

0 commit comments

Comments
 (0)