11name : AST Javascript wrapper CI
2-
2+
33on : [ pull_request ]
44permissions :
55 contents : read
6-
6+
77jobs :
88 unit-tests :
99 runs-on : cx-public-ubuntu-x64
@@ -23,10 +23,18 @@ jobs:
2323 uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
2424 with :
2525 node-version : 22.11.0
26- registry-url : https://npm.pkg.github.com/
26+ registry-url : https://npm.echohq.com/
27+ - name : Configure echohq auth (both hosts)
28+ env :
29+ ECHO_LIBRARIES_ACCESS_KEY : ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
30+ run : |
31+ npm config set //npm.echohq.com/:_authToken "${ECHO_LIBRARIES_ACCESS_KEY}"
32+ npm config set //packages.echohq.com/:_authToken "${ECHO_LIBRARIES_ACCESS_KEY}"
2733 - run : npm ci --ignore-scripts
34+ env :
35+ ECHO_LIBRARIES_ACCESS_KEY : ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
2836 - name : Run Unit Tests
29-
37+
3038 run : npm run test:unit
3139 integration-tests :
3240 runs-on : cx-public-ubuntu-x64
@@ -46,12 +54,20 @@ jobs:
4654 uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
4755 with :
4856 node-version : 22.11.0
49- registry-url : https://npm.pkg.github.com/
57+ registry-url : https://npm.echohq.com/
58+ - name : Configure echohq auth (both hosts)
59+ env :
60+ ECHO_LIBRARIES_ACCESS_KEY : ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
61+ run : |
62+ npm config set //npm.echohq.com/:_authToken "${ECHO_LIBRARIES_ACCESS_KEY}"
63+ npm config set //packages.echohq.com/:_authToken "${ECHO_LIBRARIES_ACCESS_KEY}"
5064 - run : npm ci --ignore-scripts
65+ env :
66+ ECHO_LIBRARIES_ACCESS_KEY : ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
5167 - name : Code Linting
5268 run : npm run lint
5369 - run : npm run build --if-present
54-
70+
5571 - name : Run tests
5672 env :
5773 CX_CLIENT_ID : ${{ secrets.CX_CLIENT_ID}}
0 commit comments