forked from vuetifyjs/vuetify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): ensure correct now deployment is aliased
- Loading branch information
1 parent
88d6cc2
commit 8d1cee1
Showing
4 changed files
with
25 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ | |
"github": { | ||
"autoAlias": false, | ||
"silent": true | ||
} | ||
}, | ||
"version": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const shell = require('shelljs') | ||
|
||
const alias = process.argv[2] | ||
|
||
if (!alias) { | ||
console.error('Alias not defined') | ||
process.exit(1) | ||
} | ||
|
||
const options = { | ||
env: process.env | ||
} | ||
|
||
const child = shell.exec('now --team=vuetifyjs --token=$NOW_TOKEN --npm', options) | ||
if (child.code !== 0) { | ||
process.exit(child.code) | ||
} | ||
const instanceUrl = child.stdout | ||
|
||
shell.exec(`now alias set ${instanceUrl} ${alias} --team=vuetifyjs --token=$NOW_TOKEN`, options) |
This file was deleted.
Oops, something went wrong.