Prepare for once a day pre-release publish build. Turn on manifest build
This commit is contained in:
@@ -10,8 +10,8 @@ dist_type=snapshot
|
||||
#cp -r ${sources}/*.js "$target"
|
||||
#cp s3-manifest-yaml-vsix/*.vsix "$target"
|
||||
|
||||
# export vscode_manifest_yaml=$(basename s3-manifest-yaml-vsix-${dist_type}/*.vsix)
|
||||
# echo "vscode_manifest_yaml=$vscode_manifest_yaml"
|
||||
export vscode_manifest_yaml=$(basename s3-manifest-yaml-vsix-${dist_type}/*.vsix)
|
||||
echo "vscode_manifest_yaml=$vscode_manifest_yaml"
|
||||
export vscode_spring_boot=$(basename s3-spring-boot-vsix-${dist_type}/*.vsix)
|
||||
echo "vscode_spring_boot=$vscode_spring_boot"
|
||||
export vscode_concourse=$(basename s3-concourse-vsix-${dist_type}/*.vsix)
|
||||
@@ -24,6 +24,9 @@ envsubst > "$target/vscode-extensions-snippet.html" << XXXXXX
|
||||
<li>Spring Boot Language Server:
|
||||
<a href="https://s3-us-west-1.amazonaws.com/s3-test.spring.io/sts4/vscode-extensions/${dist_type}s/${vscode_spring_boot}">${vscode_spring_boot}</a>
|
||||
</li>
|
||||
<li>Cloud Foundry Manifest Language Server:
|
||||
<a href="https://s3-us-west-1.amazonaws.com/s3-test.spring.io/sts4/vscode-extensions/${dist_type}s/${vscode_manifest_yaml}">${vscode_manifest_yaml}</a>
|
||||
</li>
|
||||
<li>Concourse CI Language Server:
|
||||
<a href="https://s3-us-west-1.amazonaws.com/s3-test.spring.io/sts4/vscode-extensions/${dist_type}s/${vscode_concourse}">${vscode_concourse}</a>
|
||||
</li>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
inputs:
|
||||
- name: sts4
|
||||
# - name: s3-manifest-yaml-vsix-snapshot
|
||||
- name: s3-manifest-yaml-vsix-snapshot
|
||||
- name: s3-spring-boot-vsix-snapshot
|
||||
- name: s3-concourse-vsix-snapshot
|
||||
- name: s3-bosh-vsix-snapshot
|
||||
|
||||
@@ -19,19 +19,19 @@ cd "$sources"
|
||||
|
||||
#npm install ../commons-vscode
|
||||
|
||||
timestamp=`date -u +%Y%m%d%H%M`
|
||||
|
||||
base_version=`jq -r .version package.json`
|
||||
if [ "$dist_type" = release ]; then
|
||||
echo -e "\n\n*Version: ${base_version}-RELEASE*" >> README.md
|
||||
else
|
||||
if [ "$dist_type" = pre ]; then
|
||||
# for pre-release build, work the timestamp into package.json patch version (
|
||||
# for pre-release build, work the timestamp into package.json patch version. No minutes in the timestamp due VSCode pre-release lack of support for semver
|
||||
timestamp=`date -u +%Y%m%d%H`
|
||||
qualified_version=`echo $base_version | sed "s/\([0-9]\{1,\}.[0-9]\{1,\}.\)[0-9]\{1,\}/\1$timestamp/"`
|
||||
npm version ${qualified_version}
|
||||
echo -e "\n\n*Version: ${base_version}-PRE-RELEASE*" >> README.md
|
||||
else
|
||||
# for snapshot build, work the timestamp into package.json version qualifier
|
||||
timestamp=`date -u +%Y%m%d%H%M`
|
||||
qualified_version=${base_version}-${timestamp}
|
||||
npm version ${qualified_version}
|
||||
echo -e "\n\n*Version: ${qualified_version}*" >> README.md
|
||||
@@ -44,7 +44,7 @@ npm install
|
||||
if [ "$dist_type" = pre ]; then
|
||||
npm run vsce-pre-release-package
|
||||
else
|
||||
npm run vsce-release-package
|
||||
npm run vsce-package
|
||||
fi
|
||||
|
||||
# for release build we don't don't add version-qualifier to package.json
|
||||
|
||||
@@ -36,7 +36,7 @@ echo -e "\n\n*Version: ${version}*" >> README.md
|
||||
cd "$sources"
|
||||
./scripts/preinstall.sh
|
||||
npm install
|
||||
npm run vsce-release-package
|
||||
npm run vsce-package
|
||||
|
||||
#Because the RC was with a unqualified version...
|
||||
#The RC version qualifier isn't automaticlaly present in the file name.
|
||||
|
||||
Reference in New Issue
Block a user