@@ -13,35 +13,25 @@ jobs:
1313 - uses : actions/checkout@v4
1414 - uses : actions/setup-node@v4
1515 with :
16- node-version : ' 20.x'
16+ node-version : ' 22.x'
17+ cache : yarn
1718
18- - run : |
19- echo "@internxt:registry=https://npm.pkg.github.com/" > .npmrc
20- echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
19+ - name : Add .env
20+ run : cp .env.template .env
2121
22- - run : yarn
22+ - name : Add .npmrc
23+ run : cp .npmrc.template .npmrc
2324
24- - name : Add .env
25- run : |
26- echo "DRIVE_URL=https://drive.internxt.com" >> .env
27- echo "DRIVE_API_URL=https://drive.internxt.com/api" >> .env
28- echo "DRIVE_NEW_API_URL=https://api.internxt.com/drive" >> .env
29- echo "PAYMENTS_API_URL=https://api.internxt.com/payments" >> .env
30- echo "PHOTOS_API_URL=https://photos.internxt.com/api" >> .env
31- echo "NETWORK_URL=https://api.internxt.com" >> .env
32- echo "APP_CRYPTO_SECRET=6KYQBP847D4ATSFA" >> .env
33- echo "APP_CRYPTO_SECRET2=8Q8VMUE3BJZV87GT" >> .env
34- echo "APP_MAGIC_IV=d139cb9a2cd17092e79e1861cf9d7023" >> .env
35- echo "APP_MAGIC_SALT=38dce0391b49efba88dbc8c39ebf868f0267eb110bb0012ab27dc52a528d61b1d1ed9d76f400ff58e3240028442b1eab9bb84e111d9dadd997982dbde9dbd25e" >> .env
36- echo "RUDDERSTACK_WRITE_KEY=" >> .env
37- echo "RUDDERSTACK_DATAPLANE_URL=" >> .env
38- echo "NODE_ENV=production" >> .env
25+ - name : Install dependencies
26+ run : yarn
3927
40- - run : yarn run build
28+ - name : Build
29+ run : yarn run build
4130
42- # Change the registry to npmjs (to publish)
43- - run : |
31+ - name : Set the NPM registry with token
32+ run : |
4433 echo "registry=https://registry.npmjs.org/" > .npmrc
4534 echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
4635
47- - run : npm publish --scope=@internxt --access public
36+ - name : Publish on NPM
37+ run : npm publish --scope=@internxt --access public
0 commit comments