File tree 1 file changed +11
-19
lines changed
1 file changed +11
-19
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,26 @@ permissions:
5
5
packages : write
6
6
7
7
on :
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
13
16
14
17
jobs :
15
18
build-publish :
16
19
name : build publish artifact
17
20
runs-on : ubuntu-latest
18
- if : github.event.pull_request.merged == true
21
+ # if: github.event.pull_request.merged == true
19
22
timeout-minutes : 20
20
23
steps :
21
24
- name : Checkout
22
25
uses : actions/checkout@v4
23
26
with :
24
- ref : master
27
+ ref : GHA-publish
25
28
fetch-depth : 0
26
29
- name : Setup Node
27
30
uses : actions/setup-node@v4
@@ -36,21 +39,10 @@ jobs:
36
39
run : yarn install
37
40
env :
38
41
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
42
- name : Release
43
+ run : gh release create "1.0.4"
51
44
env :
52
45
GITHUB_TOKEN : ${{ secrets.GH_PARSABLE_BOT_BYPASS }}
53
- run : gh release create "${{steps.version.outputs.version}}"
54
46
- name : publishing artifact
55
47
run : npm publish
56
48
env :
You can’t perform that action at this time.
0 commit comments