Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Set version to 0.0.0 if using GitHub workflow file
  • Loading branch information
badsyntax committed Dec 9, 2019
commit e47b9aa807513bcb1fd7199b9c0d34df064e2c13
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ jobs:
tag=${GITHUB_REF#refs/tags/}
echo "Setting package version $tag"
npm --no-git-tag-version version "$tag"
npm install -g vsce
vsce package
npx vsce package
- name: Publish extension to marketplace
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
run: |
vsce publish -p "$AZURE_TOKEN"
npx vsce publish -p "$AZURE_TOKEN"
4 changes: 2 additions & 2 deletions generators/app/templates/ext-colortheme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": <%- JSON.stringify(name) %>,
"displayName": <%- JSON.stringify(displayName) %>,
"description": <%- JSON.stringify(description) %>,
"version": "0.0.1",
"version": "<% if (gitHubWorkFlowInit) { %>0.0.0<% } else { %>0.0.1<% } %>",
"engines": {
"vscode": <%- JSON.stringify(vsCodeEngine) %>
},
Expand All @@ -18,4 +18,4 @@
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
node-version: [12.x]
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
Expand Down Expand Up @@ -43,10 +43,9 @@ jobs:
tag=${GITHUB_REF#refs/tags/}
echo "Setting package version $tag"
npm --no-git-tag-version version "$tag"
npm install -g vsce
vsce package
npx vsce package
- name: Publish extension to marketplace
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
run: |
vsce publish -p "$AZURE_TOKEN"
npx vsce publish -p "$AZURE_TOKEN"
2 changes: 1 addition & 1 deletion generators/app/templates/ext-command-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": <%- JSON.stringify(name) %>,
"displayName": <%- JSON.stringify(displayName) %>,
"description": <%- JSON.stringify(description) %>,
"version": "0.0.1",
"version": "<% if (gitHubWorkFlowInit) { %>0.0.0<% } else { %>0.0.1<% } %>",
"engines": {
"vscode": <%- JSON.stringify(vsCodeEngine) %>
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
node-version: [12.x]
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
Expand Down Expand Up @@ -43,10 +43,9 @@ jobs:
tag=${GITHUB_REF#refs/tags/}
echo "Setting package version $tag"
npm --no-git-tag-version version "$tag"
npm install -g vsce
vsce package
npx vsce package
- name: Publish extension to marketplace
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
run: |
vsce publish -p "$AZURE_TOKEN"
npx vsce publish -p "$AZURE_TOKEN"
2 changes: 1 addition & 1 deletion generators/app/templates/ext-command-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": <%- JSON.stringify(name) %>,
"displayName": <%- JSON.stringify(displayName) %>,
"description": <%- JSON.stringify(description) %>,
"version": "0.0.1",
"version": "<% if (gitHubWorkFlowInit) { %>0.0.0<% } else { %>0.0.1<% } %>",
"engines": {
"vscode": <%- JSON.stringify(vsCodeEngine) %>
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ jobs:
tag=${GITHUB_REF#refs/tags/}
echo "Setting package version $tag"
npm --no-git-tag-version version "$tag"
npm install -g vsce
vsce package
npx vsce package
- name: Publish extension to marketplace
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
run: |
vsce publish -p "$AZURE_TOKEN"
npx vsce publish -p "$AZURE_TOKEN"
4 changes: 2 additions & 2 deletions generators/app/templates/ext-extensionpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": <%- JSON.stringify(name) %>,
"displayName": <%- JSON.stringify(displayName) %>,
"description": <%- JSON.stringify(description) %>,
"version": "0.0.1",
"version": "<% if (gitHubWorkFlowInit) { %>0.0.0<% } else { %>0.0.1<% } %>",
"engines": {
"vscode": <%- JSON.stringify(vsCodeEngine) %>
},
Expand All @@ -13,4 +13,4 @@
"<%- extensionList[i] %>", <%}%>
"<%- extensionList[extensionList.length-1]%>"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ jobs:
tag=${GITHUB_REF#refs/tags/}
echo "Setting package version $tag"
npm --no-git-tag-version version "$tag"
npm install -g vsce
vsce package
npx vsce package
- name: Publish extension to marketplace
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
run: |
vsce publish -p "$AZURE_TOKEN"
npx vsce publish -p "$AZURE_TOKEN"
4 changes: 2 additions & 2 deletions generators/app/templates/ext-keymap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": <%- JSON.stringify(name) %>,
"displayName": <%- JSON.stringify(displayName) %>,
"description": <%- JSON.stringify(description) %>,
"version": "0.0.1",
"version": "<% if (gitHubWorkFlowInit) { %>0.0.0<% } else { %>0.0.1<% } %>",
"engines": {
"vscode": <%- JSON.stringify(vsCodeEngine) %>
},
Expand All @@ -17,4 +17,4 @@
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ jobs:
tag=${GITHUB_REF#refs/tags/}
echo "Setting package version $tag"
npm --no-git-tag-version version "$tag"
npm install -g vsce
vsce package
npx vsce package
- name: Publish extension to marketplace
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
run: |
vsce publish -p "$AZURE_TOKEN"
npx vsce publish -p "$AZURE_TOKEN"
4 changes: 2 additions & 2 deletions generators/app/templates/ext-language/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": <%- JSON.stringify(name) %>,
"displayName": <%- JSON.stringify(displayName) %>,
"description": <%- JSON.stringify(description) %>,
"version": "0.0.1",
"version": "<% if (gitHubWorkFlowInit) { %>0.0.0<% } else { %>0.0.1<% } %>",
"engines": {
"vscode": <%- JSON.stringify(vsCodeEngine) %>
},
Expand All @@ -22,4 +22,4 @@
"path": <%- JSON.stringify("./syntaxes/" + languageFileName) %>
}]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ jobs:
tag=${GITHUB_REF#refs/tags/}
echo "Setting package version $tag"
npm --no-git-tag-version version "$tag"
npm install -g vsce
vsce package
npx vsce package
- name: Publish extension to marketplace
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
run: |
vsce publish -p "$AZURE_TOKEN"
npx vsce publish -p "$AZURE_TOKEN"
2 changes: 1 addition & 1 deletion generators/app/templates/ext-localization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": <%- JSON.stringify(name) %>,
"displayName": <%- JSON.stringify(displayName) %>,
"description": <%- JSON.stringify(description) %>,
"version": "0.0.1",
"version": "<% if (gitHubWorkFlowInit) { %>0.0.0<% } else { %>0.0.1<% } %>",
"engines": {
"vscode": <%- JSON.stringify(vsCodeEngine) %>
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ jobs:
tag=${GITHUB_REF#refs/tags/}
echo "Setting package version $tag"
npm --no-git-tag-version version "$tag"
npm install -g vsce
vsce package
npx vsce package
- name: Publish extension to marketplace
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
run: |
vsce publish -p "$AZURE_TOKEN"
npx vsce publish -p "$AZURE_TOKEN"
2 changes: 1 addition & 1 deletion generators/app/templates/ext-snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": <%- JSON.stringify(name) %>,
"displayName": <%- JSON.stringify(displayName) %>,
"description": <%- JSON.stringify(description) %>,
"version": "0.0.1",
"version": "<% if (gitHubWorkFlowInit) { %>0.0.0<% } else { %>0.0.1<% } %>",
"engines": {
"vscode": <%- JSON.stringify(vsCodeEngine) %>
},
Expand Down
Loading