@@ -11,6 +11,7 @@ permissions:
1111jobs :
1212  publish_packages :
1313    runs-on : ubuntu-latest 
14+     environment : prod 
1415    steps :
1516      - uses : actions/checkout@v4 
1617      - name : Use Node.js 
@@ -26,53 +27,48 @@ jobs:
2627       - name : " NPM Identity" 
2728        env :
2829          NPM_TOKEN : ${{ secrets.NPM_TOKEN }} 
29-           BLA : as 
3030        run : | 
3131          echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc 
32-           cat .npmrc 
33-           echo ${{ secrets.NPM_TOKEN }} 
34-           echo $BLA 
32+        - name : Install dependencies 
33+         run : npm ci 
34+       - name : Run tests 
35+         run : npx lerna run test:e2e --since master 
36+       - name : Build packages 
37+         run : npx lerna run build:packages --since master 
38+       - name : Publish packages 
39+         run : npx lerna publish patch --no-verify-access --yes 
3540
36-        #  - name: Install dependencies
37-       #    run: npm ci
38-       #  - name: Run tests
39-       #    run: npx lerna run test:e2e --since master
40-       #  - name: Build packages
41-       #    run: npx lerna run build:packages --since master
42-       #  - name: Publish packages
43-       #    run: npx lerna publish patch --no-verify-access --yes
44- 
45-   #  rmw-shell-demo:
46-   #    if: ${{ always() }}
47-   #    needs: [publish_packages]
48-   #    runs-on: ubuntu-latest
49-   #    environment: prod
50-   #    steps:
51-   #      - uses: actions/checkout@v4
52-   #      - uses: actions/setup-node@v4
53-   #        with:
54-   #          node-version: "20"
55-   #      - name: git config
56-   #        run: |
57-   #          git config user.name "${GITHUB_ACTOR}"
58-   #          git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
59-   #      - name: install-rmw-shell
60-   #        run: npm create @ecronix/rmw-shell@latest demo-app
61-   #      - name: install firebase functins dependencies
62-   #        run: npm i
63-   #        working-directory: ./demo-app/firebase/functions
64-   #      - name: run build
65-   #        run: |
66-   #          npm run build
67-   #        env:
68-   #          CI: false
69-   #        working-directory: ./demo-app
70-   #      - name: Install firebase tools
71-   #        run: npm i -g firebase-tools
72-   #      - name: Deploy
73-   #        run: |
74-   #          firebase use prod
75-   #          firebase deploy --only hosting --token $FIREBASE_TOKEN
76-   #        working-directory: ./demo-app
77-   #        env:
78-   #          FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
41+   rmw-shell-demo :
42+     if : ${{ always() }} 
43+     needs : [publish_packages] 
44+     runs-on : ubuntu-latest 
45+     environment : prod 
46+     steps :
47+       - uses : actions/checkout@v4 
48+       - uses : actions/setup-node@v4 
49+         with :
50+           node-version : " 20" 
51+       - name : git config 
52+         run : | 
53+           git config user.name "${GITHUB_ACTOR}" 
54+           git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" 
55+        - name : install-rmw-shell 
56+         run : npm create @ecronix/rmw-shell@latest demo-app 
57+       - name : install firebase functins dependencies 
58+         run : npm i 
59+         working-directory : ./demo-app/firebase/functions 
60+       - name : run build 
61+         run : | 
62+           npm run build 
63+          env :
64+           CI : false 
65+         working-directory : ./demo-app 
66+       - name : Install firebase tools 
67+         run : npm i -g firebase-tools 
68+       - name : Deploy 
69+         run : | 
70+           firebase use prod 
71+           firebase deploy --only hosting --token $FIREBASE_TOKEN 
72+          working-directory : ./demo-app 
73+         env :
74+           FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }} 
0 commit comments