File tree Expand file tree Collapse file tree 1 file changed +10
-22
lines changed Expand file tree Collapse file tree 1 file changed +10
-22
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,26 @@ permissions:
55 packages : write
66
77on :
8- pull_request_target :
9- types :
10- - closed
11- branches :
12- - master
8+ push :
9+ branches :
10+ - GHA-publish
11+ # pull_request_target:
12+ # types:
13+ # - closed
14+ # branches:
15+ # - master
1316
1417jobs :
1518 build-publish :
1619 name : build publish artifact
1720 runs-on : ubuntu-latest
18- if : github.event.pull_request.merged == true
21+ # if: github.event.pull_request.merged == true
1922 timeout-minutes : 20
2023 steps :
2124 - name : Checkout
2225 uses : actions/checkout@v4
2326 with :
24- ref : master
27+ ref : GHA-publish
2528 fetch-depth : 0
2629 - name : Setup Node
2730 uses : actions/setup-node@v4
3639 run : yarn install
3740 env :
3841 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}}"
5442 - name : publishing artifact
5543 run : npm publish
5644 env :
You can’t perform that action at this time.
0 commit comments