Przeglądaj źródła

Publish `monaco-editor-core` even if the `monaco-editor` checks do not succeed

Alex Dima 3 lat temu
rodzic
commit
3de27fe12d
1 zmienionych plików z 13 dodań i 5 usunięć
  1. 13 5
      .github/workflows/nightly.yml

+ 13 - 5
.github/workflows/nightly.yml

@@ -95,6 +95,18 @@ jobs:
         working-directory: ./vscode/test/monaco
         run: yarn test
 
+      - name: Set `npm` config
+        run: npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
+        env:
+          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+
+      - name: Publish `monaco-editor-core`
+        working-directory: './vscode/out-monaco-editor-core'
+        run: npm publish --tag next
+
+      - name: Delete `npm` config
+        run: npm config delete //registry.npmjs.org/:_authToken
+
       - name: (monaco-editor) Patch package.json version
         run: node ./monaco-editor/.github/workflows/nightly/setNightlyVersion.js ./monaco-editor/package.json
 
@@ -145,15 +157,11 @@ jobs:
         working-directory: './monaco-editor'
         run: npm run build-website
 
-      - name: Configure `npm`
+      - name: Set `npm` config
         run: npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
         env:
           NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
 
-      - name: Publish `monaco-editor-core`
-        working-directory: './vscode/out-monaco-editor-core'
-        run: npm publish --tag next
-
       - name: Publish `monaco-editor`
         working-directory: './monaco-editor/release'
         run: npm publish --tag next