Skip to content

Commit

Permalink
feat: setup pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jeilsonaraujo authored Feb 28, 2024
2 parents 03306a2 + 39496a1 commit 5baf3d3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

name: Publish Extension

on:
push:
branches:
- main

jobs:
publish-extension:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: setup vsce
run: npm install -g @vscode/vsce

- name: generate package
run: npm install && vsce package

- name: Publish
if: success()
run: yarn install && npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}


4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ Here, you can explore the various types of golden tests available, offering insi
* revert update tree view
### 1.0.7
* add a title to failures view


### 1.0.8
* setup automatic deploy

---
<a href="https://www.flaticon.com/free-icons/golden-retriever" title="golden retriever icons">Golden retriever icons created by Freepik - Flaticon</a><br>
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/jeilsonaraujo/golden_diff.git"
},
"version": "1.0.7",
"version": "1.0.8",
"engines": {
"vscode": "^1.77.0"
},
Expand Down Expand Up @@ -115,7 +115,8 @@
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
"test": "node ./out/test/runTest.js",
"deploy": "vsce publish --yarn"
},
"devDependencies": {
"@types/glob": "^8.1.0",
Expand Down

0 comments on commit 5baf3d3

Please sign in to comment.