File tree 1 file changed +9
-14
lines changed
1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : build-publish
2
2
permissions :
3
3
contents : write
4
- id-token : read
4
+ id-token : write
5
5
packages : write
6
6
7
7
on :
@@ -21,20 +21,15 @@ jobs:
21
21
# if: github.event.pull_request.merged == true
22
22
timeout-minutes : 20
23
23
steps :
24
- - name : testing token
25
- run : |
26
- echo bot_token?: ${{ secrets.GH_PARSABLE_BOT_BYPASS == ''}}
27
- echo bot_token?: ${{ secrets.GH_PAT_CLASSIC_MACHINE_PARSABLE == ''}}
28
24
- name : Checkout
29
25
uses : actions/checkout@v4
30
26
with :
31
- token : ${{ secrets.GH_PARSABLE_BOT_BYPASS }}
32
27
ref : GHA-publish
33
28
fetch-depth : 0
34
29
- name : Setup Node
35
30
uses : actions/setup-node@v4
36
31
with :
37
- node-version : 18 .x
32
+ node-version : 16 .x
38
33
registry-url : https://npm.pkg.github.com/
39
34
scope : ' @parsable'
40
35
cache : yarn
@@ -54,13 +49,13 @@ jobs:
54
49
run : |
55
50
truncated_version=$(echo ${{ steps.version.outputs.version }} | awk -F- '{print $1}')-test
56
51
echo previous tag: ${{ steps.version.outputs.previous-version }} => new tag: ${truncated_version}
57
- # git config --global user.email "ops+machine-parsable@parsable.com"
58
- # git config --global user.name "machine-parsable"
59
- # npm version -m "Updating package.json for version ${truncated_version}" ${truncated_version}
60
- # git pull --ff-only
61
- # git push origin $(git branch --show-current) --tags
62
- # git status
63
- # echo "new_tag=${truncated_version}" >> $GITHUB_OUTPUT
52
+ git config --global user.email "ops+machine-parsable@parsable.com"
53
+ git config --global user.name "machine-parsable"
54
+ npm version -m "Updating package.json for version ${truncated_version}" ${truncated_version}
55
+ git pull --ff-only
56
+ git push origin $(git branch --show-current) --tags
57
+ git status
58
+ echo "new_tag=${truncated_version}" >> $GITHUB_OUTPUT
64
59
# - name: Release
65
60
# env:
66
61
# GITHUB_TOKEN: ${{ secrets.GH_PARSABLE_BOT_BYPASS }}
You can’t perform that action at this time.
0 commit comments