Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Reggionick committed Jun 16, 2020
1 parent 057db37 commit 95e72e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1000,17 +1000,16 @@ const exec = __webpack_require__(986);
let deploy = function (folder, bucket, distId) {
return new Promise((resolve, reject) => {
try {
const args = [
`./${folder}/**`,
`--bucket ${bucket}`,
`--cwd './${folder}'`,
`--distId ${distId}`,
`--etag`,
`--gzip xml,html,htm,js,css,ttf,otf,svg,txt`,
`--invalidate '/'`,
`--noCache`,
];
exec.exec("npx [email protected]", args).then(resolve).catch(reject);
const command = `npx [email protected] './${folder}/**' \
--bucket ${bucket} \
--cwd './${folder}' \
--distId ${distId} \
--etag \
--gzip xml,html,htm,js,css,ttf,otf,svg,txt \
--invalidate / \
--noCache `;

exec.exec(command).then(resolve).catch(reject);
} catch (e) {
reject(e);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "javascript-action",
"version": "1.1.0",
"version": "1.1.1",
"description": "JavaScript Action Template",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 95e72e0

Please sign in to comment.