Skip to content

Commit 109b1ff

Browse files
committed
adding automated deployment
1 parent 6d6bce8 commit 109b1ff

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ trigger:
55
tags:
66
include:
77
- v*
8-
# - refs/tags/v*
8+
- refs/tags/v*
99

1010
pr:
1111
branches:
@@ -44,10 +44,10 @@ steps:
4444
env:
4545
DISPLAY: ':99.0'
4646

47-
# - bash: |
48-
# echo ">>> Publish"
49-
# npm run deploy
50-
# displayName: Publish
51-
# condition: add(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Agent.OS'], 'Linux'))
52-
# env:
53-
# VSCE_PAT: $(VSCE_PAT)
47+
- bash: |
48+
echo ">>> Publish"
49+
npm run deploy
50+
displayName: Publish
51+
condition: add(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Agent.OS'], 'Linux'))
52+
env:
53+
VSCE_PAT: $(VSCE_PAT)

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"parent-child",
2525
"visualizer",
2626
"server component",
27-
"client component"
27+
"client component",
28+
"react server components"
2829
],
2930
"license": "MIT",
3031
"pricing": "Free",
@@ -77,7 +78,8 @@
7778
"tests": "node ./build/src/test/runTest.js",
7879
"dev": "webpack --mode development --config webpack.config.ts --watch",
7980
"prod": "webpack --mode production --config webpack.config.ts",
80-
"compile": "tsc -p ./"
81+
"compile": "tsc -p ./",
82+
"deploy": "vsce publish"
8183
},
8284
"devDependencies": {
8385
"@babel/preset-typescript": "^7.23.3",

0 commit comments

Comments
 (0)