File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -21,16 +21,32 @@ jobs:
21
21
fetch-depth : 0
22
22
token : ${{ secrets.PAT_INSOMNIA_INFRA }}
23
23
24
-
25
24
- name : Configure Git user
26
25
uses : Homebrew/actions/git-user-config@master
27
26
with :
28
27
username : ${{ (github.event_name == 'workflow_dispatch' && github.actor) || 'insomnia-infra' }}
29
28
29
+ - name : Setup Node
30
+ uses : actions/setup-node@v4
31
+ with :
32
+ node-version : 20
33
+
34
+ - name : Install
35
+ run : npm ci
36
+
37
+ - name : Create new package version
38
+ run : npm version "${{ env.TAG }}"
39
+
40
+ - name : Git Commit
41
+ run : git commit -am "Bump version to ${{ env.TAG }}"
42
+
30
43
- name : Tag the Repository
31
44
run : |
32
45
git tag ${{ env.TAG }}
33
- git push origin ${{ env.TAG }}
46
+ remote_repo="https://${GITHUB_ACTOR}:${RELEASE_GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
47
+ git push "${remote_repo}" --follow-tags
48
+ env :
49
+ RELEASE_GH_TOKEN : ${{ secrets.PAT_INSOMNIA_INFRA }}
34
50
35
51
- name : Create Tag and Release
36
52
uses : ncipollo/release-action@v1
You can’t perform that action at this time.
0 commit comments