Skip to content

Commit

Permalink
change envs of workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
takanakahiko committed Jan 21, 2019
1 parent bd2bf54 commit ea6e7c5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
22 changes: 13 additions & 9 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ workflow "Lint, Build and Publish" {
}

action "Install" {
uses = "actions/npm@master"
args = "ci"
uses = "docker://node:latest"
args = "npm ci"
}

action "Lint" {
needs = "Install"
uses = "actions/npm@master"
args = "run lint"
uses = "docker://node:latest"
args = "npm run lint"
}

action "Build" {
needs = "Install"
uses = "actions/npm@master"
args = "run build"
uses = "docker://node:latest"
args = "npm run build"
}

action "TagFilter" {
Expand All @@ -32,7 +32,11 @@ action "TagFilter" {

action "Publish" {
needs = ["TagFilter", "Lint", "Build"]
uses = "actions/npm@master"
args = "run deploy"
secrets = ["CLIENT_SECRET", "EXTENSION_ID", "REFRESH_TOKEN"]
uses = "docker://node:latest"
args = "npm run deploy"
env = {
CLIENT_ID = "633113123031-trhcki4s7nmfjj7a9u4keqihmab5u2cf.apps.googleusercontent.com"
EXTENSION_ID = "omcnknklnilbbnoioiaibdkhoonlmdnj"
}
secrets = ["CLIENT_SECRET", "REFRESH_TOKEN"]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"dev:edge": "gulp --watch --vendor=edge",
"lint": "standard tasks/**/*.js && tsc --noEmit && tslint ./app/scripts/**/*.ts --fix",
"deploy": "npm run upload-webstore && npm run publish-webstore",
"upload-webstore": "webstore upload --source packages/new.zip --client-id 633113123031-trhcki4s7nmfjj7a9u4keqihmab5u2cf.apps.googleusercontent.com --extension-id $EXTENSION_ID",
"publish-webstore": "webstore publish --client-id 633113123031-trhcki4s7nmfjj7a9u4keqihmab5u2cf.apps.googleusercontent.com --extension-id $EXTENSION_ID"
"upload-webstore": "webstore upload --source packages/new.zip --extension-id $EXTENSION_ID",
"publish-webstore": "webstore publish --extension-id $EXTENSION_ID"
},
"standard": {
"globals": [
Expand Down

0 comments on commit ea6e7c5

Please sign in to comment.