Skip to content

Commit 1051ef6

Browse files
committed
test
1 parent c8a579c commit 1051ef6

1 file changed

Lines changed: 22 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,11 @@ jobs:
108108
decentraland_js_runtime_s3_bucket_key: ${{ steps.publish_dcl_js_runtime.outputs.s3-bucket-key }}
109109
decentraland_ecs_bucket_key: ${{ steps.publish_ecs.outputs.s3-bucket-key }}
110110
env:
111-
is_a_pr: github.event.pull_request.number && github.ref != 'refs/heads/protocol-squad'
111+
IS_A_PR: github.event.pull_request.number != 'null' && github.ref != 'refs/heads/protocol-squad'
112112
steps:
113+
- name: (PR) change @dcl/react-ecs dependencies versions to point to s3 url
114+
if: ${{ env.IS_A_PR }}
115+
run: echo "run from a PR"
113116
- uses: actions/checkout@master
114117
- uses: actions/setup-node@v3
115118
with:
@@ -148,6 +151,7 @@ jobs:
148151
with:
149152
registry-url: 'https://registry.npmjs.org'
150153
custom-tag: protocol-squad
154+
branch-to-custom-tag: refs/heads/protocol-squad
151155
access: public
152156
cwd: ./packages/@dcl/js-runtime
153157
## use action runId instead of current date to generate snapshot numbers
@@ -158,6 +162,7 @@ jobs:
158162
s3-bucket: ${{ secrets.SDK_TEAM_S3_BUCKET }}
159163
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}/@dcl/js-runtime'
160164
env:
165+
BRANCH_NAME: ${{ github.ref }}
161166
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
162167
AWS_ACCESS_KEY_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
163168
AWS_SECRET_ACCESS_KEY: ${{ secrets.SDK_TEAM_AWS_SECRET }}
@@ -168,6 +173,7 @@ jobs:
168173
with:
169174
registry-url: 'https://registry.npmjs.org'
170175
custom-tag: protocol-squad
176+
branch-to-custom-tag: refs/heads/protocol-squad
171177
access: public
172178
cwd: ./packages/@dcl/ecs
173179
## use action runId instead of current date to generate snapshot numbers
@@ -178,13 +184,14 @@ jobs:
178184
s3-bucket: ${{ secrets.SDK_TEAM_S3_BUCKET }}
179185
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}/@dcl/ecs'
180186
env:
187+
BRANCH_NAME: ${{ github.ref }}
181188
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
182189
AWS_ACCESS_KEY_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
183190
AWS_SECRET_ACCESS_KEY: ${{ secrets.SDK_TEAM_AWS_SECRET }}
184191

185192
- name: (PR) change @dcl/react-ecs dependencies versions to point to s3 url
186193
working-directory: ./packages/@dcl/react-ecs
187-
if: ${{ env.is_a_pr }}
194+
if: ${{ env.IS_A_PR }}
188195
run: |
189196
node -e "\
190197
let pkg=require('./package.json');\
@@ -200,6 +207,7 @@ jobs:
200207
with:
201208
registry-url: 'https://registry.npmjs.org'
202209
custom-tag: protocol-squad
210+
branch-to-custom-tag: refs/heads/protocol-squad
203211
access: public
204212
cwd: ./packages/@dcl/react-ecs
205213
## use action runId instead of current date to generate snapshot numbers
@@ -210,6 +218,7 @@ jobs:
210218
s3-bucket: ${{ secrets.SDK_TEAM_S3_BUCKET }}
211219
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}/@dcl/react-ecs'
212220
env:
221+
BRANCH_NAME: ${{ github.ref }}
213222
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
214223
AWS_ACCESS_KEY_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
215224
AWS_SECRET_ACCESS_KEY: ${{ secrets.SDK_TEAM_AWS_SECRET }}
@@ -220,6 +229,7 @@ jobs:
220229
with:
221230
registry-url: 'https://registry.npmjs.org'
222231
custom-tag: protocol-squad
232+
branch-to-custom-tag: refs/heads/protocol-squad
223233
access: public
224234
cwd: ./packages/@dcl/inspector
225235
## use action runId instead of current date to generate snapshot numbers
@@ -230,13 +240,14 @@ jobs:
230240
s3-bucket: ${{ secrets.SDK_TEAM_S3_BUCKET }}
231241
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}/@dcl/inspector'
232242
env:
243+
BRANCH_NAME: ${{ github.ref }}
233244
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
234245
AWS_ACCESS_KEY_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
235246
AWS_SECRET_ACCESS_KEY: ${{ secrets.SDK_TEAM_AWS_SECRET }}
236247

237248
- name: (PR) change @dcl/sdk-commands dependencies versions to point to s3 url
238249
working-directory: ./packages/@dcl/sdk-commands
239-
if: ${{ env.is_a_pr }}
250+
if: ${{ env.IS_A_PR }}
240251
run: |
241252
node -e "\
242253
let pkg=require('./package.json');\
@@ -254,6 +265,7 @@ jobs:
254265
with:
255266
registry-url: 'https://registry.npmjs.org'
256267
custom-tag: protocol-squad
268+
branch-to-custom-tag: refs/heads/protocol-squad
257269
access: public
258270
cwd: ./packages/@dcl/sdk-commands
259271
## use action runId instead of current date to generate snapshot numbers
@@ -264,13 +276,14 @@ jobs:
264276
s3-bucket: ${{ secrets.SDK_TEAM_S3_BUCKET }}
265277
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}'
266278
env:
279+
BRANCH_NAME: ${{ github.ref }}
267280
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
268281
AWS_ACCESS_KEY_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
269282
AWS_SECRET_ACCESS_KEY: ${{ secrets.SDK_TEAM_AWS_SECRET }}
270283

271284
- name: (PR) change @dcl/sdk version to s3 url
272285
working-directory: ./packages/@dcl/sdk
273-
if: ${{ env.is_a_pr }}
286+
if: ${{ env.IS_A_PR }}
274287
run: |
275288
node -e "\
276289
let pkg=require('./package.json');\
@@ -295,6 +308,7 @@ jobs:
295308
with:
296309
registry-url: 'https://registry.npmjs.org'
297310
custom-tag: protocol-squad
311+
branch-to-custom-tag: refs/heads/protocol-squad
298312
access: public
299313
cwd: ./packages/@dcl/sdk
300314
## use action runId instead of current date to generate snapshot numbers
@@ -305,6 +319,7 @@ jobs:
305319
s3-bucket: ${{ secrets.SDK_TEAM_S3_BUCKET }}
306320
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}'
307321
env:
322+
BRANCH_NAME: ${{ github.ref }}
308323
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
309324
AWS_ACCESS_KEY_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
310325
AWS_SECRET_ACCESS_KEY: ${{ secrets.SDK_TEAM_AWS_SECRET }}
@@ -321,6 +336,7 @@ jobs:
321336
with:
322337
registry-url: 'https://registry.npmjs.org'
323338
custom-tag: protocol-squad
339+
branch-to-custom-tag: refs/heads/protocol-squad
324340
access: public
325341
cwd: ./packages/@dcl/playground-assets
326342
## use action runId instead of current date to generate snapshot numbers
@@ -331,12 +347,13 @@ jobs:
331347
s3-bucket: ${{ secrets.SDK_TEAM_S3_BUCKET }}
332348
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}'
333349
env:
350+
BRANCH_NAME: ${{ github.ref }}
334351
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
335352
AWS_ACCESS_KEY_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
336353
AWS_SECRET_ACCESS_KEY: ${{ secrets.SDK_TEAM_AWS_SECRET }}
337354
notify_deployment:
338355
needs: [build]
339-
if: github.event.pull_request.number && github.ref != 'refs/heads/protocol-squad'
356+
if: github.event.pull_request.number != 'null' && github.ref != 'refs/heads/protocol-squad'
340357
runs-on: ubuntu-latest
341358
name: Deployment Notification
342359
steps:

0 commit comments

Comments
 (0)