1
+ ---
2
+ name : Release deploy
3
+
4
+ on :
5
+ push :
6
+ branches : [ "**" ]
7
+ tags-ignore : [ "**" ]
8
+ release :
9
+ types : [ published ]
10
+
11
+ jobs :
12
+ changed_files :
13
+ if : ${{ !contains(github.ref, 'refs/tags/') }}
14
+ runs-on : ubuntu-24.04
15
+ name : Test changed-files
16
+ outputs :
17
+ src_any_changed : ${{ steps.changed-files.outputs.src_any_changed }}
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 0
22
+ - uses : nrwl/nx-set-shas@v4
23
+ id : last_successful_commit_push
24
+ with :
25
+ main-branch-name : ${{ github.event.repository.default_branch }}
26
+ workflow-id : ' release.yml'
27
+ - name : Get changed files
28
+ id : changed-files
29
+ uses : tj-actions/changed-files@v45
30
+ with :
31
+ files_yaml_from_source_file : changed-files.yml
32
+ base_sha : ${{ steps.last_successful_commit_push.outputs.base }}
33
+ - name : List all changed files
34
+ run : |
35
+ echo "${{ toJSON(steps.changed-files.outputs) }}"
36
+ build :
37
+ if : ${{ !contains(github.ref, 'refs/tags/') }}
38
+ needs : changed_files
39
+ uses : ./.github/workflows/build.yml
40
+ with :
41
+ node_version : " 18"
42
+ skip : ${{ github.event.pusher.name != 'bot-shop-ci' && needs.changed_files.outputs.src_any_changed != 'true' }}
43
+ secrets : inherit
44
+ # prerelease:
45
+ # needs: [changed_files, build]
46
+ # if: ${{ needs.changed_files.outputs.src_any_changed == 'true' && !contains(github.ref, 'refs/tags/') }}
47
+ # uses: Flaconi/github-actions/.github/workflows/publish-node.yml@v1
48
+ # with:
49
+ # branch: ${{ github.ref_name }}
50
+ # version: --preid beta.${{ github.run_id }} prerelease
51
+ # yarn_command_post_version: build
52
+ # pre_release: true
53
+ # secrets: inherit
54
+
55
+ # publish:
56
+ # if: ${{ contains(github.ref, 'refs/tags/') }}
57
+ # uses: Flaconi/github-actions/.github/workflows/publish-node.yml@v1
58
+ # with:
59
+ # yarn_command_post_version: build
60
+ # secrets: inherit
0 commit comments