File tree Expand file tree Collapse file tree 4 files changed +92
-3
lines changed Expand file tree Collapse file tree 4 files changed +92
-3
lines changed Original file line number Diff line number Diff line change 1+
2+
3+ name : Upload build artifacts
4+ on :
5+ push :
6+ branches :
7+ - main
8+ - release/**
9+ pull_request :
10+ workflow_dispatch :
11+ inputs :
12+ commit :
13+ description : If the commit you want to test isn't the head of a branch, provide its SHA here
14+ required : false
15+ jobs :
16+ artifacts :
17+ name : Upload Artifacts
18+ runs-on : ubuntu-latest
19+ # Build artifacts are only needed for releasing workflow.
20+ if : startsWith(github.ref, 'refs/heads/release/')
21+ steps :
22+ - name : Check out current commit
23+ uses : actions/checkout@v3
24+ with :
25+ ref : ${{ env.HEAD_COMMIT }}
26+ - uses : actions/setup-node@v3
27+ with :
28+ node-version : 16
29+ cache : ' npm'
30+ - name : Install dependencies
31+ run : npm install
32+ - name : pack
33+ run : npm pack
34+ - name : Archive artifacts
35+ uses : actions/upload-artifact@v3
36+ with :
37+ name : ${{ github.sha }}
38+ path : |
39+ ${{ github.workspace }}/*.tgz
Original file line number Diff line number Diff line change 1+ name : Prepare Release
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ version :
6+ description : Version to release
7+ required : true
8+ force :
9+ description : Force a release even when there are release-blockers (optional)
10+ required : false
11+ merge_target :
12+ description : Target branch to merge into. Uses the default branch as a fallback (optional)
13+ required : false
14+ jobs :
15+ release :
16+ runs-on : ubuntu-latest
17+ name : ' Release a new version'
18+ steps :
19+ - uses : actions/checkout@v3
20+ with :
21+ token : ${{ secrets.GH_RELEASE_PAT }}
22+ fetch-depth : 0
23+ - name : Prepare release
24+ uses : getsentry/action-prepare-release@v1
25+ env :
26+ GITHUB_TOKEN : ${{ secrets.GH_RELEASE_PAT }}
27+ with :
28+ version : ${{ github.event.inputs.version }}
29+ force : ${{ github.event.inputs.force }}
30+ merge_target : ${{ github.event.inputs.merge_target }}
Original file line number Diff line number Diff line change 11{
22 "name" : " jest-sentry-environment" ,
33 "version" : " 3.0.0" ,
4- "description" : " Sentry instrumentation for jest" ,
5- "main" : " index.js" ,
4+ "description" : " Automatic performance and profiling instrumentation for your jest tests." ,
65 "scripts" : {
76 "test" : " npm test"
87 },
98 "repository" : {
109 "type" : " git" ,
1110 "url" : " git+https://github.com/billyvg/jest-sentry-environment.git"
1211 },
12+ "files" : [
13+ " package.json" ,
14+ " README.md" ,
15+ " LICENSE" ,
16+ " node.js" ,
17+ " jsdom.js" ,
18+ " createEnvironment.js"
19+ ],
1320 "keywords" : [
1421 " sentry" ,
1522 " jest" ,
1623 " test" ,
17- " testing"
24+ " testing" ,
25+ " performance" ,
26+ " profiling" ,
27+ " tracing"
1828 ],
1929 "author" :
" Billy Vong <[email protected] >" ,
2030 "license" : " Apache-2.0" ,
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # ## Example of a version-bumping script for an NPM project.
3+ # ## Located at: ./scripts/bump-version.sh
4+ set -eux
5+ OLD_VERSION=" ${1} "
6+ NEW_VERSION=" ${2} "
7+
8+ # Do not tag and commit changes made by "npm version"
9+ export npm_config_git_tag_version=false
10+ npm version " ${NEW_VERSION} "
You can’t perform that action at this time.
0 commit comments