-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: configure sentry for telemetry data
- Loading branch information
1 parent
0951737
commit e46b910
Showing
9 changed files
with
1,636 additions
and
107 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 |
---|---|---|
|
@@ -17,13 +17,24 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
|
||
- name: Semantic Release | ||
uses: cycjimmy/[email protected] | ||
id: semantic | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
with: | ||
dry_run: true | ||
|
||
- name: Install Dependencies | ||
run: npm ci --ignore-scripts | ||
|
||
|
@@ -33,15 +44,27 @@ jobs: | |
- name: Lint | ||
run: npm run lint | ||
|
||
# - name: Test | ||
# run: npm run test | ||
- name: Test | ||
run: npm run test | ||
|
||
- name: Build | ||
env: | ||
RELEASE_VERSION: ${{ steps.semantic.outputs.new_release_version }} | ||
run: npm run build | ||
|
||
- name: Semantic Release | ||
uses: cycjimmy/[email protected] | ||
env: | ||
HUSKY: 0 | ||
GH_TOKEN: ${{ secrets.GH_PAT }} | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx semantic-release | ||
|
||
- name: Create Sentry release | ||
uses: getsentry/action-release@v1 | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
SENTRY_ORG: allan-oricil | ||
SENTRY_PROJECT: nrg-cli | ||
with: | ||
environment: production | ||
sourcemaps: ./dist | ||
version: ${{ steps.semantic.outputs.new_release_version }} |
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 |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
node_modules | ||
dist | ||
logs | ||
coverage | ||
coverage | ||
# Sentry Config File | ||
.env.sentry-build-plugin |
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
Oops, something went wrong.