Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit ccf6012

Browse files
committed
fix(ci): add release job separately and removed publish script
1 parent be4297c commit ccf6012

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: ci
22

33
on:
4-
push:
5-
branches:
6-
- master
74
pull_request:
85
branches:
96
- master
@@ -24,9 +21,3 @@ jobs:
2421
run: npm ci
2522
- name: Run tests
2623
run: npm run test
27-
- name: Release
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31-
CI: true
32-
run: npm run semantic-release

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v1
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 12
17+
- name: Install dependencies
18+
run: npm ci
19+
- name: Run tests
20+
run: npm run test
21+
- name: Release
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25+
CI: true
26+
run: npm run semantic-release

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"lint": "vue-cli-service lint",
2121
"test:watch": "vue-cli-service test:unit --verbose --no-cache --watchAll",
2222
"test": "vue-cli-service test:unit",
23-
"publish": "npm run build && npm publish --access public",
2423
"docs:dev": "vuepress dev docs",
2524
"docs:build": "vuepress build docs",
2625
"semantic-release": "semantic-release"

0 commit comments

Comments
 (0)