Skip to content

Commit

Permalink
fix vsce publish 😅
Browse files Browse the repository at this point in the history
  • Loading branch information
chaseadamsio committed May 19, 2019
1 parent 85b2d7b commit 5d42a01
Show file tree
Hide file tree
Showing 6 changed files with 812 additions and 25 deletions.
10 changes: 10 additions & 0 deletions .github/actions/publish/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:11.11.0-alpine

LABEL "com.github.actions.name"="Release"
LABEL "com.github.actions.description"="Publish Theme to Visual Studio Marketplace"
LABEL "com.github.actions.icon"="check-circle"
LABEL "com.github.actions.color"="green"

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT [ "/entrypoint.sh" ]
3 changes: 3 additions & 0 deletions .github/actions/publish/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
yarn install
yarn vscode:publish
2 changes: 1 addition & 1 deletion .github/actions/release/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:11.11.0-alpine

LABEL "com.github.actions.name"="Release"
LABEL "com.github.actions.description"="Release the extension"
LABEL "com.github.actions.description"="Create New Release for Theme"
LABEL "com.github.actions.icon"="check-circle"
LABEL "com.github.actions.color"="green"

Expand Down
3 changes: 1 addition & 2 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ action "Release" {

action "Publish" {
needs = "Release"
uses = "lannonbr/vsce-action@master"
args = "publish -p $VSCE_TOKEN"
uses = "./.github/actions/release"
secrets = ["VSCE_TOKEN", "GITHUB_TOKEN"]
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test:flow": "flow check",
"test:lint": "eslint --ignore-path .gitignore --ext .js,.jsx .",
"vscode:prepublish": "(test -d themes || mkdir themes) && yarn build && yarn cp:static",
"vscode:publish": "cd themes && vsce"
"vscode:publish": "cd themes && vsce publish -p $GITHUB_TOKEN"
},
"dependencies": {
"auto-changelog": "^1.13.0",
Expand All @@ -29,6 +29,7 @@
"eslint-plugin-flowtype": "^3.9.0",
"flow-bin": "^0.98.1",
"prettier": "^1.17.1",
"release-it": "^12.2.0"
"release-it": "^12.2.0",
"vsce": "^1.61.0"
}
}
Loading

0 comments on commit 5d42a01

Please sign in to comment.