4
4
push :
5
5
branches :
6
6
- master
7
- schedule :
8
- - cron : ' 0 2 * * *'
9
7
jobs :
10
8
11
9
build_backend :
@@ -58,15 +56,15 @@ jobs:
58
56
run : |
59
57
CODEARTIFACT_TOKEN=$(/usr/local/bin/aws codeartifact get-authorization-token --duration-seconds 1800 --domain ${{ secrets.CODEARTIFACT_DOMAIN }} --domain-owner ${{ secrets.CODEARTIFACT_DOMAIN_OWNER }} --region ${{ secrets.AWS_REGION }} --output text --query authorizationToken)
60
58
echo "::add-mask::$CODEARTIFACT_TOKEN"
61
- echo "CUSTOM_REGISTRY_TOKEN=${{ secrets.CODEARTIFACT_NPM_RELEASES_REPOSITORY_TOKEN }}$CODEARTIFACT_TOKEN" >> $GITHUB_ENV
59
+ echo "CUSTOM_REGISTRY_TOKEN=${{ secrets.CODEARTIFACT_NPM_SNAPSHOTS_REPOSITORY_TOKEN }}$CODEARTIFACT_TOKEN" >> $GITHUB_ENV
62
60
- name : build frontend for master - production Web SDK
63
61
uses : actions/setup-node@v2
64
62
env :
65
- CUSTOM_REGISTRY_URL : ${{ secrets.CODEARTIFACT_NPM_RELEASES_REPOSITORY_URL }}
63
+ CUSTOM_REGISTRY_URL : ${{ secrets.CODEARTIFACT_NPM_SNAPSHOTS_REPOSITORY_URL }}
66
64
with :
67
65
node-version : " 16.9.1"
68
66
- run : |
69
- npm config set registry=${{ secrets.CODEARTIFACT_NPM_RELEASES_REPOSITORY_URL }}
67
+ npm config set registry=${{ secrets.CODEARTIFACT_NPM_SNAPSHOTS_REPOSITORY_URL }}
70
68
npm config set $CUSTOM_REGISTRY_TOKEN
71
69
npm config set always-auth true
72
70
yarn add -E @voxeet/voxeet-web-sdk@${{ env.GITHUB_REF_SLUG }}
@@ -104,7 +102,7 @@ jobs:
104
102
run : |
105
103
CODEARTIFACT_TOKEN=$(/usr/local/bin/aws codeartifact get-authorization-token --duration-seconds 1800 --domain ${{ secrets.CODEARTIFACT_DOMAIN }} --domain-owner ${{ secrets.CODEARTIFACT_DOMAIN_OWNER }} --region ${{ secrets.AWS_REGION }} --output text --query authorizationToken)
106
104
echo "::add-mask::$CODEARTIFACT_TOKEN"
107
- echo "CUSTOM_REGISTRY_TOKEN=${{ secrets.CODEARTIFACT_NPM_RELEASES_REPOSITORY_TOKEN }}$CODEARTIFACT_TOKEN" >> $GITHUB_ENV
105
+ echo "CUSTOM_REGISTRY_TOKEN=${{ secrets.CODEARTIFACT_NPM_SNAPSHOTS_REPOSITORY_TOKEN }}$CODEARTIFACT_TOKEN" >> $GITHUB_ENV
108
106
- name : Login to ECR
109
107
id : ecr
110
108
@@ -117,7 +115,7 @@ jobs:
117
115
env :
118
116
WEB_SDK_DIST_TAG : master-staging
119
117
UX_KIT_DIST_TAG : develop
120
- CUSTOM_REGISTRY_URL : ${{ secrets.CODEARTIFACT_NPM_RELEASES_REPOSITORY_URL }}
118
+ CUSTOM_REGISTRY_URL : ${{ secrets.CODEARTIFACT_NPM_SNAPSHOTS_REPOSITORY_URL }}
121
119
with :
122
120
name : voxeet-io-web
123
121
dockerfile : Dockerfile
@@ -148,17 +146,17 @@ jobs:
148
146
run : |
149
147
CODEARTIFACT_TOKEN=$(/usr/local/bin/aws codeartifact get-authorization-token --duration-seconds 1800 --domain ${{ secrets.CODEARTIFACT_DOMAIN }} --domain-owner ${{ secrets.CODEARTIFACT_DOMAIN_OWNER }} --region ${{ secrets.AWS_REGION }} --output text --query authorizationToken)
150
148
echo "::add-mask::$CODEARTIFACT_TOKEN"
151
- echo "CUSTOM_REGISTRY_TOKEN=${{ secrets.CODEARTIFACT_NPM_RELEASES_REPOSITORY_TOKEN }}$CODEARTIFACT_TOKEN" >> $GITHUB_ENV
149
+ echo "CUSTOM_REGISTRY_TOKEN=${{ secrets.CODEARTIFACT_NPM_SNAPSHOTSS_REPOSITORY_TOKEN }}$CODEARTIFACT_TOKEN" >> $GITHUB_ENV
152
150
- name : build frontend for develop - frontend master_staging Web SDK
153
151
uses : actions/setup-node@v2
154
152
env :
155
153
WEB_SDK_DIST_TAG : master-staging
156
154
UX_KIT_DIST_TAG : develop
157
- CUSTOM_REGISTRY_URL : ${{ secrets.CODEARTIFACT_NPM_RELEASES_REPOSITORY_URL }}
155
+ CUSTOM_REGISTRY_URL : ${{ secrets.CODEARTIFACT_NPM_SNAPSHOTS_REPOSITORY_URL }}
158
156
with :
159
157
node-version : " 16.9.1"
160
158
- run : |
161
- npm config set registry=${{ secrets.CODEARTIFACT_NPM_RELEASES_REPOSITORY_URL }}
159
+ npm config set registry=${{ secrets.CODEARTIFACT_NPM_SNAPSHOTSS_REPOSITORY_URL }}
162
160
npm config set $CUSTOM_REGISTRY_TOKEN
163
161
npm config set always-auth true
164
162
yarn add -E @voxeet/voxeet-web-sdk@${{ env.WEB_SDK_DIST_TAG }}
0 commit comments