Skip to content

Commit

Permalink
Merge pull request #54 from codecov/spalmurray/fix-sentry-envars
Browse files Browse the repository at this point in the history
fix: Properly set env vars in build step
  • Loading branch information
spalmurray-codecov authored Dec 2, 2024
2 parents a749f4a + f73ed1b commit 5cfea3c
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,34 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Create Docker image for json schema generation
run: make build

- name: Generate json schema
run: make run

- name: Build extension
run: npm run build

- name: Install vsce
run: npm install -g @vscode/vsce

- name: Publish extension
run: vsce publish --no-update-package-json "$VSCE_VERSION"
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
VSCE_VERSION: ${{ github.event.release.tag_name }}
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Create Docker image for json schema generation
run: make build

- name: Generate json schema
run: make run

- name: Build extension
run: npm run build
env:
SENTRY_DSN: ${{ vars.SENTRY_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

- name: Install vsce
run: npm install -g @vscode/vsce

- name: Publish extension
run: vsce publish --no-update-package-json "$VSCE_VERSION"
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
VSCE_VERSION: ${{ github.event.release.tag_name }}

0 comments on commit 5cfea3c

Please sign in to comment.