@@ -126,12 +126,10 @@ jobs:
126126 - run : poetry-dynamic-versioning
127127
128128 - name : install node modules
129- run : |
130- npm install --also=dev
129+ run : npm install --also=dev
131130
132131 - name : package
133- run : |
134- poetry run npm-package
132+ run : poetry run npm-package
135133
136134 - name : Upload VSCode package
137135 uses : actions/upload-artifact@v2
@@ -153,10 +151,36 @@ jobs:
153151
154152 publish :
155153 runs-on : ubuntu-latest
154+ environment : publish
156155 needs : package
157156 # if: success() && startsWith( github.ref, 'refs/tags/v')
158157 if : success()
159158 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+
160184 - uses : actions/download-artifact@v2
161185 with :
162186 name : vscode-package
@@ -169,7 +193,9 @@ jobs:
169193 with :
170194 name : wheel-package
171195 path : dist
172- - run : poetry run npm-publish
196+
197+ - name : publish
198+ run : poetry run npm-publish
173199 env :
174200 VSCE_PAT : ${{ secrets.VSCE_PAT }}
175201
0 commit comments