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

Commit bd29b5b

Browse files
authored
Merge pull request #51 from alvarosaburido/bug/npm_packages_ci_publish_twice
fix(ci): add release job separately and removed publish script
2 parents be4297c + ce361e3 commit bd29b5b

File tree

3 files changed

+27
-11
lines changed

3 files changed

+27
-11
lines changed

.github/workflows/ci.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
name: ci
22

33
on:
4-
push:
5-
branches:
6-
- master
74
pull_request:
85
branches:
96
- master
107
- dev
118

129
jobs:
1310
test-and-release:
14-
name: Run tests and release
11+
name: Run tests
1512
runs-on: ubuntu-18.04
1613
steps:
1714
- name: Checkout
@@ -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

+26
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: Run test and 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

-1
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)