Skip to content

Commit

Permalink
Update preview release process (#38)
Browse files Browse the repository at this point in the history
* Update release.yml

* Update more json fields
  • Loading branch information
codybrouwers authored Sep 17, 2024
1 parent 654b373 commit f4bdd93
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build and Publish Vercel Deployment Extension"
name: "Publish Preview"

on:
workflow_dispatch:
Expand Down Expand Up @@ -40,9 +40,20 @@ jobs:

- name: Set to preview version
run: |
# Update vss-extension.json to set it to preview version
jq '. += { "id": "vercel-deployment-extension-preview", "name": "Vercel Deployment Extension (Preview)", "public": false, "galleryFlags": ["Preview"] }' vss-extension.json > temp.json \
&& mv temp.json vss-extension.json \
&& pnpm exec prettier --write vss-extension.json
# Update vercel-deployment-task-source/task.json to set it to preview version
jq '.id = "e56d47c0-6789-4b3c-9563-7a66f7b2066f" | .name |= . + "-preview" | .friendlyName |= . + " (Preview)"' vercel-deployment-task-source/task.json > temp.json \
&& mv temp.json vercel-deployment-task-source/task.json \
# Update vercel-azdo-pr-comment-task-source/task.json to set it to preview version
jq '.id = "E0AE50D0-C1B0-4F2F-BC25-F821A3E081E1" | .name |= . + "-preview" | .friendlyName |= . + " (Preview)"' vercel-azdo-pr-comment-task-source/task.json > temp.json \
&& mv temp.json vercel-azdo-pr-comment-task-source/task.json \
# Format the updated files using Prettier
pnpm exec prettier --write vss-extension.json vercel-deployment-task-source/task.json vercel-azdo-pr-comment-task-source/task.json
echo "Updated vss-extension.json"
- name: Build and Publish
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build and Publish Vercel Deployment Extension"
name: "Publish"

on:
workflow_dispatch:
Expand All @@ -12,7 +12,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
node-version-file: ".node-version"

- uses: pnpm/action-setup@v2
name: Install pnpm
Expand Down

0 comments on commit f4bdd93

Please sign in to comment.