Skip to content

Commit

Permalink
fix: semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Mar 28, 2021
1 parent 4b6e226 commit 1465806
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release-vue-quill.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Install root deps
run: npm ci
- name: Install package deps
working-directory: packages/vue-quill
run: npm ci
- name: Install root deps
run: npm ci
- name: Release package
run: npm run release -- vue-quill
working-directory: packages/vue-quill
run: node ../../scripts/release.js vue-quill
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion packages/vue-quill/src/assets/snow.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ backgroundColor = #fff
inactiveColor = #4B5563
shadowColor = #D1D5DB
textColor = #4B5563
// Additional color
// Additional colors
backgroundHoverColor = #F3F4F6
backgroundActiveColor = #DBEAFE

Expand Down
12 changes: 12 additions & 0 deletions scripts/release.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const chalk = require('chalk')
const execa = require('execa')

const args = require('minimist')(process.argv.slice(2))
const targets = args._

if (process.env.CI && targets[0]) {
execa.sync('zip', ['-r', `${targets[0]}vue-quill-dist.zip`, '.', '-i', 'dist'])
execa.sync('npx', ['semantic-release'])
} else {
console.log(chalk.redBright("You can't run semantic-release locally"))
}
17 changes: 0 additions & 17 deletions scripts/semantic-release.js

This file was deleted.

0 comments on commit 1465806

Please sign in to comment.