@@ -41,22 +41,17 @@ jobs:
41
41
- name : bump version
42
42
run : npm version ${{ github.event.inputs.version }}
43
43
44
- - name : Push latest version
45
- run : git push origin main --follow-tags
46
-
47
44
- name : get-npm-version
48
45
id : package-version
49
46
uses : martinbeentjes/npm-get-version-action@master
50
47
51
- - name : Create Release Notes
52
-
53
- with :
54
- github-token : ${{secrets.GITHUB_TOKEN}}
55
- script : |
56
- await github.request(`POST /repos/${{ github.repository }}/releases`, {
57
- tag_name: "v${{ steps.package-version.outputs.current-version }}",
58
- generate_release_notes: true
59
- });
48
+ - name : Update version in api.cfc
49
+ run : |
50
+ cat core/api.cfc | sed 's/local\._taffy\.version = \"[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\"/local._taffy.version = "${{ steps.package-version.outputs.current-version }}"/gi' > core/api.new.cfc
51
+ rm -f core/api.cfc
52
+ mv core/api.new.cfc core/api.cfc
53
+ git add core/api.cfc
54
+ git commit --amend --no-edit
60
55
61
56
- name : Cut a docs file for the new release
62
57
run : |
66
61
rm -f docs/readme.md
67
62
mv docs/readme-next.md docs/readme.md
68
63
git add docs/readme.md
69
- git commit -m"New doc file ${{ steps.package-version.outputs.current-version }}.md"
70
- git push
64
+ git commit --amend --no-edit
65
+
66
+ - name : Push latest version
67
+ run : git push origin main --follow-tags
68
+
69
+ - name : Create Release Notes
70
+
71
+ with :
72
+ github-token : ${{secrets.GITHUB_TOKEN}}
73
+ script : |
74
+ await github.request(`POST /repos/${{ github.repository }}/releases`, {
75
+ tag_name: "v${{ steps.package-version.outputs.current-version }}",
76
+ generate_release_notes: true
77
+ });
71
78
72
79
- name : Tweet-trigger-publish-release
73
80
0 commit comments