37
37
repository : po-ui/po-tslint
38
38
path : po-tslint
39
39
40
- # - uses: actions/setup-node@v4
41
- # with:
42
- # node-version: latest
43
- # registry-url: 'https://registry.npmjs.org'
44
-
45
40
- name : Install and Build
46
41
run : npm install && npm run build
47
42
working-directory : ${{env.WORKING_DIR}}
@@ -64,125 +59,132 @@ jobs:
64
59
# PUBLISH NG-SCHEMATICS
65
60
- name : ng-schematics - publish
66
61
# Se a versão remota for igual à versão que será publicada então ele pula o publish deste pacote e tenta publicar os demais pacotes
67
- # if: (!contains(env.PACKAGE_VERSION, env.SCHEMATICS_LAST_PUBLISHED_VERSION))
68
- uses : actions/setup-node@v4
62
+ # if: (!contains(env.PACKAGE_VERSION, env.SCHEMATICS_LAST_PUBLISHED_VERSION))
63
+ uses : actions/setup-node@v3
69
64
with :
70
- node-version : ' latest '
65
+ node-version : ' 16.x '
71
66
registry-url : ' https://registry.npmjs.org'
72
- run : npm publish dist/ng-schematics --ignore-scripts
67
+ - run : npm publish ${{env.WORKING_DIR}}/dist/ng-schematics --ignore-scripts
68
+ env :
69
+ PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
70
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
71
+
72
+ - name : ng-schematics - add "latest" tag
73
+ if : (!contains(env.PACKAGE_VERSION, env.SCHEMATICS_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
74
+ run : npm dist-tags add @${{ env.SCHEMATICS_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
73
75
working-directory : ${{env.WORKING_DIR}}
74
76
env :
77
+ PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
75
78
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
79
+
80
+ # PUBLISH NG-STORAGE
81
+ - name : ng-storage - publish
82
+ if : (!contains(env.PACKAGE_VERSION, env.STORAGE_LAST_PUBLISHED_VERSION))
83
+ uses : actions/setup-node@v3
84
+ with :
85
+ node-version : ' 16.x'
86
+ registry-url : ' https://registry.npmjs.org'
87
+ - run : npm publish ${{env.WORKING_DIR}}/dist/ng-storage --ignore-scripts
88
+ env :
76
89
PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
77
- # run: npm publish dist/ng-schematics --ignore-scripts
78
- # working-directory: ${{env.WORKING_DIR}}
79
- # env:
80
- # PACKAGE_VERSION: ${{ steps.package-version.outputs.current-version }}
81
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
90
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
82
91
83
- - name : ng-schematics - add "latest" tag
92
+ - name : ng-storage - add "latest" tag
93
+ if : (!contains(env.PACKAGE_VERSION, env.STORAGE_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
94
+ run : npm dist-tags add @${{ env.STORAGE_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
95
+ working-directory : ${{env.WORKING_DIR}}
96
+ env :
97
+ PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
98
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
84
99
85
- # if: (!contains(env.PACKAGE_VERSION, env.SCHEMATICS_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
86
- run : npm dist-tags add @${{ env.SCHEMATICS_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
100
+ # PUBLISH NG-SYNC
101
+ - name : ng-sync - publish
102
+ if : (!contains(env.PACKAGE_VERSION, env.SYNC_LAST_PUBLISHED_VERSION))
103
+ uses : actions/setup-node@v3
104
+ with :
105
+ node-version : ' 16.x'
106
+ registry-url : ' https://registry.npmjs.org'
107
+ - run : npm publish ${{env.WORKING_DIR}}/dist/ng-sync --ignore-scripts
108
+ env :
109
+ PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
110
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
111
+
112
+ - name : ng-sync - add "latest" tag
113
+ if : (!contains(env.PACKAGE_VERSION, env.SYNC_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
114
+ run : npm dist-tags add @${{ env.SYNC_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
87
115
working-directory : ${{env.WORKING_DIR}}
88
116
env :
89
117
PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
90
118
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
91
119
92
- # # PUBLISH NG-STORAGE
93
- # - name: ng-storage - publish
94
- # if: (!contains(env.PACKAGE_VERSION, env.STORAGE_LAST_PUBLISHED_VERSION))
95
- # run: npm publish dist/ng-storage --ignore-scripts
96
- # working-directory: ${{env.WORKING_DIR}}
97
- # env:
98
- # PACKAGE_VERSION: ${{ steps.package-version.outputs.current-version }}
99
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
100
-
101
- # - name: ng-storage - add "latest" tag
102
- # if: (!contains(env.PACKAGE_VERSION, env.STORAGE_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
103
- # run: npm dist-tags add @${{ env.STORAGE_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
104
- # working-directory: ${{env.WORKING_DIR}}
105
- # env:
106
- # PACKAGE_VERSION: ${{ steps.package-version.outputs.current-version }}
107
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
108
-
109
- # # PUBLISH NG-SYNC
110
- # - name: ng-sync - publish
111
- # if: (!contains(env.PACKAGE_VERSION, env.SYNC_LAST_PUBLISHED_VERSION))
112
- # run: npm publish dist/ng-sync --ignore-scripts
113
- # working-directory: ${{env.WORKING_DIR}}
114
- # env:
115
- # PACKAGE_VERSION: ${{ steps.package-version.outputs.current-version }}
116
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
117
-
118
- # - name: ng-sync - add "latest" tag
119
- # if: (!contains(env.PACKAGE_VERSION, env.SYNC_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
120
- # run: npm dist-tags add @${{ env.SYNC_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
121
- # working-directory: ${{env.WORKING_DIR}}
122
- # env:
123
- # PACKAGE_VERSION: ${{ steps.package-version.outputs.current-version }}
124
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
125
-
126
- # # PUBLISH NG-COMPONENTS
127
- # - name: ng-components - publish
128
- # if: (!contains(env.PACKAGE_VERSION, env.COMPONENTS_LAST_PUBLISHED_VERSION))
129
- # run: npm publish dist/ng-components --ignore-scripts
130
- # working-directory: ${{env.WORKING_DIR}}
131
- # env:
132
- # PACKAGE_VERSION: ${{ steps.package-version.outputs.current-version }}
133
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
134
-
135
- # - name: ng-components - add "latest" tag
136
- # if: (!contains(env.PACKAGE_VERSION, env.COMPONENTS_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
137
- # run: npm dist-tags add @${{ env.COMPONENTS_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
138
- # working-directory: ${{env.WORKING_DIR}}
139
- # env:
140
- # PACKAGE_VERSION: ${{ steps.package-version.outputs.current-version }}
141
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
142
-
143
- # # PUBLISH NG-TEMPLATES
144
- # - name: ng-templates - publish
145
- # if: (!contains(env.PACKAGE_VERSION, env.TEMPLATES_LAST_PUBLISHED_VERSION))
146
- # run: npm publish dist/ng-templates --ignore-scripts
147
- # working-directory: ${{env.WORKING_DIR}}
148
- # env:
149
- # PACKAGE_VERSION: ${{ steps.package-version.outputs.current-version }}
150
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
151
-
152
- # - name: ng-templates - add "latest" tag
153
- # if: (!contains(env.PACKAGE_VERSION, env.TEMPLATES_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
154
- # run: npm dist-tags add @${{ env.TEMPLATES_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
155
- # working-directory: ${{env.WORKING_DIR}}
156
- # env:
157
- # PACKAGE_VERSION: ${{ steps.package-version.outputs.current-version }}
158
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
159
-
160
- # # PUBLISH NG-CODE-EDITOR
161
- # - name: ng-code-editor publish
162
- # if: (!contains(env.PACKAGE_VERSION, env.CODE_EDITOR_LAST_PUBLISHED_VERSION))
163
- # run: npm publish dist/ng-code-editor --ignore-scripts
164
- # working-directory: ${{env.WORKING_DIR}}
165
- # env:
166
- # PACKAGE_VERSION: ${{ steps.package-version.outputs.current-version }}
167
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
168
-
169
- # - name: ng-code-editor add "latest" tag
170
- # if: (!contains(env.PACKAGE_VERSION, env.CODE_EDITOR_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
171
- # run: npm dist-tags add @${{ env.CODE_EDITOR_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
172
- # working-directory: ${{env.WORKING_DIR}}
173
- # env:
174
- # PACKAGE_VERSION: ${{ steps.package-version.outputs.current-version }}
175
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
176
-
177
- # # PUBLISH PORTAL
178
- # - name: portal build
179
- # run: npm run build:portal:docs && npm run build:portal:prod
180
- # working-directory: ${{env.WORKING_DIR}}
181
-
182
- # - name: 'Deploy to Azure Web App'
183
- # uses: azure/webapps-deploy@v2
184
- # with:
185
- # app-name: ${{ env.AZURE_WEBAPP_NAME }}
186
- # package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
187
- # publish-profile: ${{ secrets.AZURE_TOKEN }}
120
+ # PUBLISH NG-COMPONENTS
121
+ - name : ng-components - publish
122
+ if : (!contains(env.PACKAGE_VERSION, env.COMPONENTS_LAST_PUBLISHED_VERSION))
123
+ uses : actions/setup-node@v3
124
+ with :
125
+ node-version : ' 16.x'
126
+ registry-url : ' https://registry.npmjs.org'
127
+ - run : npm publish ${{env.WORKING_DIR}}/dist/ng-components --ignore-scripts
128
+ env :
129
+ PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
130
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
188
131
132
+ - name : ng-components - add "latest" tag
133
+ if : (!contains(env.PACKAGE_VERSION, env.COMPONENTS_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
134
+ run : npm dist-tags add @${{ env.COMPONENTS_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
135
+ working-directory : ${{env.WORKING_DIR}}
136
+ env :
137
+ PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
138
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
139
+
140
+ # PUBLISH NG-TEMPLATES
141
+ - name : ng-templates - publish
142
+ if : (!contains(env.PACKAGE_VERSION, env.TEMPLATES_LAST_PUBLISHED_VERSION))
143
+ uses : actions/setup-node@v3
144
+ with :
145
+ node-version : ' 16.x'
146
+ registry-url : ' https://registry.npmjs.org'
147
+ - run : npm publish ${{env.WORKING_DIR}}/dist/ng-templates --ignore-scripts
148
+ env :
149
+ PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
150
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
151
+
152
+ - name : ng-templates - add "latest" tag
153
+ if : (!contains(env.PACKAGE_VERSION, env.TEMPLATES_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
154
+ run : npm dist-tags add @${{ env.TEMPLATES_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
155
+ working-directory : ${{env.WORKING_DIR}}
156
+ env :
157
+ PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
158
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
159
+
160
+ # PUBLISH NG-CODE-EDITOR
161
+ - name : ng-code-editor - publish
162
+ if : (!contains(env.PACKAGE_VERSION, env.CODE_EDITOR_LAST_PUBLISHED_VERSION))
163
+ uses : actions/setup-node@v3
164
+ with :
165
+ node-version : ' 16.x'
166
+ registry-url : ' https://registry.npmjs.org'
167
+ - run : npm publish ${{env.WORKING_DIR}}/dist/ng-code-editor --ignore-scripts
168
+ env :
169
+ PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
170
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
171
+
172
+ - name : ng-code-editor - add "latest" tag
173
+ if : (!contains(env.PACKAGE_VERSION, env.CODE_EDITOR_LAST_PUBLISHED_VERSION) && !contains(env.PACKAGE_VERSION, '-next') && !contains(env.PACKAGE_VERSION, '-rc'))
174
+ run : npm dist-tags add @${{ env.CODE_EDITOR_NPM_PATH }}@${{ env.PACKAGE_VERSION }}
175
+ working-directory : ${{env.WORKING_DIR}}
176
+ env :
177
+ PACKAGE_VERSION : ${{ steps.package-version.outputs.current-version }}
178
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
179
+
180
+ # PUBLISH PORTAL
181
+ - name : portal build
182
+ run : npm run build:portal:docs && npm run build:portal:prod
183
+ working-directory : ${{env.WORKING_DIR}}
184
+
185
+ - name : ' Deploy to Azure Web App'
186
+ uses : azure/webapps-deploy@v2
187
+ with :
188
+ app-name : ${{ env.AZURE_WEBAPP_NAME }}
189
+ package : ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
190
+ publish-profile : ${{ secrets.AZURE_TOKEN }}
0 commit comments