-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb1464b
commit 9b981e9
Showing
1 changed file
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,12 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get latest tag | ||
run: | | ||
latest-tag=$(git describe --tags --abbrev=0) | ||
echo "Latest tag: $latest-tag" | ||
echo "LATEST_TAG=$latest-tag" >> $GITHUB_ENV | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -20,14 +26,15 @@ jobs: | |
npm ci | ||
npm install -g vsce | ||
- name: Replace sentry_dns with SENTRY_URL from secrets | ||
- name: Update version in package.json | ||
run: | | ||
sed -i "s#https://[email protected]/20#${{ secrets.SENTRY_URL }}#g" ./src/constants/organization.ts | ||
jq --arg version "$LATEST_TAG" '.version = $version' package.json > package.tmp.json | ||
mv package.tmp.json package.json | ||
shell: bash | ||
|
||
- name: Verify updated organization.ts | ||
run: cat ./src/constants/organization.ts | ||
- name: Verify updated package.json | ||
run: cat package.json | ||
|
||
- name: Package VS Code Extension | ||
run: vsce package | ||
|
||
|
@@ -36,13 +43,8 @@ jobs: | |
with: | ||
name: vsce-package | ||
path: "*.vsix" | ||
|
||
# - name: Publish to VS Code Marketplace | ||
# env: | ||
# VSCE_PAT: ${{ secrets.VSCE_PAT }} | ||
# run: vsce publish -p $VSCE_PAT | ||
- name: Trigger Sentry Release | ||
uses: ./.github/workflows/sentry-release.yml | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|