File tree Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : npm
4+ directory : " /"
5+ schedule :
6+ interval : " weekly"
7+ day : " sunday"
8+ time : " 09:00"
9+ timezone : " America/Los_Angeles"
10+ ignore :
11+ - dependency-name : " *"
12+ update-types : [version-update:semver-major]
13+ open-pull-requests-limit : 5
14+ commit-message :
15+ prefix : " bot: update npm dependencies: "
16+
17+ - package-ecosystem : " github-actions"
18+ directory : " /"
19+ schedule :
20+ interval : " weekly"
21+ day : " sunday"
22+ time : " 09:00"
23+ timezone : " America/Los_Angeles"
24+ open-pull-requests-limit : 10
25+ commit-message :
26+ prefix : " [no-jira] bot: update github-actions image to "
27+
Original file line number Diff line number Diff line change 1+ name : build-publish
2+ permissions :
3+ contents : write
4+ id-token : write
5+ packages : write
6+
7+ on :
8+ pull_request_target :
9+ types :
10+ - closed
11+ branches :
12+ - master
13+
14+ jobs :
15+ build-publish :
16+ name : build publish artifact
17+ runs-on : ubuntu-latest
18+ if : github.event.pull_request.merged == true
19+ timeout-minutes : 20
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v4
23+ with :
24+ ref : master
25+ fetch-depth : 0
26+ - name : Setup Node
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : 16.x
30+ registry-url : https://npm.pkg.github.com/
31+ scope : ' @parsable'
32+ cache : yarn
33+ env :
34+ NODE_AUTH_TOKEN : ${{secrets.GH_PAT_CLASSIC_MACHINE_PARSABLE}}
35+ - name : Install Dependencies
36+ run : yarn install
37+ env :
38+ NODE_AUTH_TOKEN : ${{secrets.GH_PAT_CLASSIC_MACHINE_PARSABLE}}
39+ - name : Tag
40+ id : tag
41+ run : |
42+ truncated_version=1.0.4
43+ git config --global user.email "ops+machine-parsable@parsable.com"
44+ git config --global user.name "machine-parsable"
45+ npm version -m "Updating package.json for version ${truncated_version}" ${truncated_version}
46+ git pull --ff-only
47+ git push origin $(git branch --show-current) --tags
48+ git status
49+ echo "new_tag=${truncated_version}" >> $GITHUB_OUTPUT
50+ - name : Release
51+ env :
52+ GITHUB_TOKEN : ${{ secrets.GH_PARSABLE_BOT_BYPASS }}
53+ run : gh release create "${{steps.version.outputs.version}}"
54+ - name : publishing artifact
55+ run : npm publish
56+ env :
57+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments