Skip to content

Commit

Permalink
Merge pull request #24 from lwkchan/setup-gh-action-publishing
Browse files Browse the repository at this point in the history
Setup gh action publishing
  • Loading branch information
lwkchan authored Jun 3, 2023
2 parents 1331ade + c7ffa99 commit 6b0a288
Show file tree
Hide file tree
Showing 3 changed files with 631 additions and 7 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release-to-marketplace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release
on:
push:
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Automatic GitHub Release
uses: justincy/[email protected]
id: release
- name: Publish
if: steps.release.outputs.released == 'true'
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "make-a-type",
"displayName": "make a type",
"repository": "https://github.com/lwkchan/make-a-type",
"publisher": "lwkchan",
"description": "",
"version": "0.0.3",
Expand All @@ -26,6 +27,7 @@
]
},
"scripts": {
"deploy": "vsce publish --yarn",
"vscode:prepublish": "webpack --mode production",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
Expand All @@ -42,6 +44,7 @@
"@types/vscode": "^1.44.0",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"@vscode/vsce": "^2.19.0",
"eslint": "^6.8.0",
"glob": "^7.1.6",
"mocha": "^7.1.2",
Expand Down
Loading

0 comments on commit 6b0a288

Please sign in to comment.