66 - ' **'
77 pull_request :
88 branches :
9- - master
9+ - main
1010 - development
1111
1212concurrency :
2727 with :
2828 fetch-depth : 0
2929
30- - name : Set up nodejs
31- uses : actions/setup-node@v3
30+ - name : Set up Node.js
31+ uses : actions/setup-node@v4
3232 with :
3333 node-version : ' lts/*'
3434 cache : ' npm'
4949 run : echo "VERSION=$(cat package.json | jq -r .version)" >> $GITHUB_ENV
5050
5151 - name : SonarQube Scan (Push)
52- if : github.event_name == 'push' && (github.ref == 'refs/heads/master ' || github.ref == 'refs/heads/main_v1_disable_flag_sets_in_localstorage')
52+ if : github.event_name == 'push' && (github.ref == 'refs/heads/main ' || github.ref == 'refs/heads/main_v1_disable_flag_sets_in_localstorage')
5353 uses :
SonarSource/[email protected] 5454 env :
5555 SONAR_TOKEN : ${{ secrets.SONARQUBE_TOKEN }}
7777 -Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
7878
7979 - name : Store assets
80- if : github.event_name == 'push' && (github.ref == 'refs/heads/master ' || github.ref == 'refs/heads/main_v1_disable_flag_sets_in_localstorage')
81- uses : actions/upload-artifact@v3
80+ if : github.event_name == 'push' && (github.ref == 'refs/heads/main ' || github.ref == 'refs/heads/main_v1_disable_flag_sets_in_localstorage')
81+ uses : actions/upload-artifact@v4
8282 with :
8383 name : assets
8484 path : umd/
@@ -100,7 +100,7 @@ jobs:
100100
101101 steps :
102102 - name : Download assets
103- uses : actions/download-artifact@v3
103+ uses : actions/download-artifact@v4
104104 with :
105105 name : assets
106106 path : umd
@@ -110,7 +110,7 @@ jobs:
110110 working-directory : umd
111111
112112 - name : Configure AWS credentials
113- uses : aws-actions/configure-aws-credentials@v1-node16
113+ uses : aws-actions/configure-aws-credentials@v4
114114 with :
115115 role-to-assume : arn:aws:iam::${{ matrix.account_id }}:role/gha-public-assets-role
116116 aws-region : us-east-1
@@ -127,7 +127,7 @@ jobs:
127127 name : Upload assets
128128 runs-on : ubuntu-latest
129129 needs : build
130- if : github.event_name == 'push' && github.ref == 'refs/heads/master '
130+ if : github.event_name == 'push' && github.ref == 'refs/heads/main '
131131 strategy :
132132 matrix :
133133 environment :
@@ -139,7 +139,7 @@ jobs:
139139
140140 steps :
141141 - name : Download assets
142- uses : actions/download-artifact@v3
142+ uses : actions/download-artifact@v4
143143 with :
144144 name : assets
145145 path : umd
@@ -149,7 +149,7 @@ jobs:
149149 working-directory : umd
150150
151151 - name : Configure AWS credentials
152- uses : aws-actions/configure-aws-credentials@v1-node16
152+ uses : aws-actions/configure-aws-credentials@v4
153153 with :
154154 role-to-assume : arn:aws:iam::${{ matrix.account_id }}:role/gha-public-assets-role
155155 aws-region : us-east-1
0 commit comments