Skip to content

Commit 43b79e1

Browse files
committed
testing to see if this condition will pass commits to main OR tags, and added MacOS agent in yaml for pipelines
1 parent aaefbac commit 43b79e1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

azure-pipelines.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ steps:
4848
echo ">>> Publish"
4949
npm run deploy
5050
displayName: Publish
51-
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Agent.OS'], 'Linux'))
51+
condition: and(
52+
succeeded(),
53+
or(
54+
startsWith(variables['Build.SourceBranch'], 'refs/tags/'),
55+
eq(variables['Build.SourceBranch'], 'refs/heads/main')
56+
),
57+
or(
58+
eq(variables['Agent.OS'], 'Linux'),
59+
eq(variables['Agent.OS'], 'MacOS')
60+
)
61+
)
5262
env:
5363
VSCE_PAT: $(VSCE_PAT)

0 commit comments

Comments
 (0)