File tree Expand file tree Collapse file tree 4 files changed +20
-5
lines changed Expand file tree Collapse file tree 4 files changed +20
-5
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Check if the correct number of arguments are provided
4
+ if [ $# -ne 1 ]; then
5
+ echo " Usage: $0 <version>"
6
+ exit 1
7
+ fi
8
+
9
+ # Assign arguments to variables
10
+ custom_string=" $1 "
11
+
12
+ # Perform the replacement and save to output file
13
+ sed " s/<%version%>/$custom_string /g" " angular.json" > " angular.json.tmp" && mv " angular.json.tmp" " angular.json"
14
+
15
+ echo " Template string replaced successfully. 🎉"
Original file line number Diff line number Diff line change 21
21
22
22
- uses : actions/setup-node@v4
23
23
with :
24
- node-version : 20
24
+ node-version : 22
25
25
26
26
- name : Install deps
27
27
run : |
63
63
64
64
with :
65
65
method : chat.postMessage
66
- channel-id : ' deployments'
66
+ channel : ' deployments'
67
67
token : ${{ secrets.SLACK_BOT_TOKEN }}
68
68
payload : |
69
69
{
Original file line number Diff line number Diff line change 19
19
bun-version : latest
20
20
- uses : actions/setup-node@v4
21
21
with :
22
- node-version : 20
22
+ node-version : 22
23
23
registry-url : https://registry.npmjs.org/
24
24
- name : Build library
25
25
run : |
48
48
49
49
with :
50
50
method : chat.postMessage
51
- channel-id : ' deployments'
51
+ channel : ' deployments'
52
52
token : ${{ secrets.SLACK_BOT_TOKEN }}
53
53
payload : |
54
54
{
Original file line number Diff line number Diff line change 36
36
bun-version : latest
37
37
- uses : actions/setup-node@v4
38
38
with :
39
- node-version : 20
39
+ node-version : 22
40
40
- name : Check quality
41
41
run : |
42
42
bun i
You can’t perform that action at this time.
0 commit comments