Skip to content

Commit 1465806

Browse files
committed
fix: semantic release
1 parent 4b6e226 commit 1465806

File tree

4 files changed

+17
-21
lines changed

4 files changed

+17
-21
lines changed

.github/workflows/release-vue-quill.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ jobs:
1717
- uses: actions/setup-node@v1
1818
with:
1919
node-version: '14.x'
20+
- name: Install root deps
21+
run: npm ci
2022
- name: Install package deps
2123
working-directory: packages/vue-quill
2224
run: npm ci
23-
- name: Install root deps
24-
run: npm ci
2525
- name: Release package
26-
run: npm run release -- vue-quill
26+
working-directory: packages/vue-quill
27+
run: node ../../scripts/release.js vue-quill
2728
env:
2829
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2930
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}

packages/vue-quill/src/assets/snow.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ backgroundColor = #fff
55
inactiveColor = #4B5563
66
shadowColor = #D1D5DB
77
textColor = #4B5563
8-
// Additional color
8+
// Additional colors
99
backgroundHoverColor = #F3F4F6
1010
backgroundActiveColor = #DBEAFE
1111

scripts/release.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const chalk = require('chalk')
2+
const execa = require('execa')
3+
4+
const args = require('minimist')(process.argv.slice(2))
5+
const targets = args._
6+
7+
if (process.env.CI && targets[0]) {
8+
execa.sync('zip', ['-r', `${targets[0]}vue-quill-dist.zip`, '.', '-i', 'dist'])
9+
execa.sync('npx', ['semantic-release'])
10+
} else {
11+
console.log(chalk.redBright("You can't run semantic-release locally"))
12+
}

scripts/semantic-release.js

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

0 commit comments

Comments
 (0)