@@ -126,12 +126,10 @@ jobs:
126
126
- run : poetry-dynamic-versioning
127
127
128
128
- name : install node modules
129
- run : |
130
- npm install --also=dev
129
+ run : npm install --also=dev
131
130
132
131
- name : package
133
- run : |
134
- poetry run npm-package
132
+ run : poetry run npm-package
135
133
136
134
- name : Upload VSCode package
137
135
uses : actions/upload-artifact@v2
@@ -153,10 +151,36 @@ jobs:
153
151
154
152
publish :
155
153
runs-on : ubuntu-latest
154
+ environment : publish
156
155
needs : package
157
156
# if: success() && startsWith( github.ref, 'refs/tags/v')
158
157
if : success()
159
158
steps :
159
+ - uses : actions/checkout@v2
160
+ with :
161
+ fetch-depth : 0
162
+
163
+ - run : git describe --tag
164
+
165
+ - name : Setup Node.js environment
166
+ uses : actions/setup-node@v2
167
+ with :
168
+ node-version : " 16"
169
+ - uses : actions/setup-python@v2
170
+ with :
171
+ python-version : " 3.8"
172
+
173
+ - uses : Gr1N/setup-poetry@v7
174
+
175
+ - run : pip install poetry-dynamic-versioning
176
+
177
+ - run : poetry install
178
+
179
+ - run : poetry-dynamic-versioning
180
+
181
+ - name : install node modules
182
+ run : npm install --also=dev
183
+
160
184
- uses : actions/download-artifact@v2
161
185
with :
162
186
name : vscode-package
@@ -169,7 +193,9 @@ jobs:
169
193
with :
170
194
name : wheel-package
171
195
path : dist
172
- - run : poetry run npm-publish
196
+
197
+ - name : publish
198
+ run : poetry run npm-publish
173
199
env :
174
200
VSCE_PAT : ${{ secrets.VSCE_PAT }}
175
201
0 commit comments