mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
Add a workflow_dispatch input
This commit is contained in:
parent
dc0f824c38
commit
51ab8d1537
1 changed files with 10 additions and 1 deletions
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
|
|
@ -4,7 +4,12 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 7 * * *'
|
- cron: '0 7 * * *'
|
||||||
# enable users to manually trigger with workflow_dispatch
|
# enable users to manually trigger with workflow_dispatch
|
||||||
workflow_dispatch: {}
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
nightly:
|
||||||
|
description: 'is nightly?'
|
||||||
|
required: true
|
||||||
|
default: 'true'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
|
|
@ -66,6 +71,7 @@ jobs:
|
||||||
run: yarn test-browser --browser chromium
|
run: yarn test-browser --browser chromium
|
||||||
|
|
||||||
- name: (vscode) Patch package.json version
|
- name: (vscode) Patch package.json version
|
||||||
|
if: ${{ github.event.inputs.nightly == 'true' }}
|
||||||
run: node ./monaco-editor/.github/workflows/nightly/setNightlyVersion.js ./vscode/build/monaco/package.json
|
run: node ./monaco-editor/.github/workflows/nightly/setNightlyVersion.js ./vscode/build/monaco/package.json
|
||||||
|
|
||||||
- name: (vscode) Editor Distro
|
- name: (vscode) Editor Distro
|
||||||
|
|
@ -107,6 +113,7 @@ jobs:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Publish `monaco-editor-core`
|
- name: Publish `monaco-editor-core`
|
||||||
|
if: ${{ github.event.inputs.nightly == 'true' }}
|
||||||
working-directory: './vscode/out-monaco-editor-core'
|
working-directory: './vscode/out-monaco-editor-core'
|
||||||
run: npm publish --tag next
|
run: npm publish --tag next
|
||||||
|
|
||||||
|
|
@ -114,6 +121,7 @@ jobs:
|
||||||
run: npm config delete //registry.npmjs.org/:_authToken
|
run: npm config delete //registry.npmjs.org/:_authToken
|
||||||
|
|
||||||
- name: (monaco-editor) Patch package.json version
|
- name: (monaco-editor) Patch package.json version
|
||||||
|
if: ${{ github.event.inputs.nightly == 'true' }}
|
||||||
run: node ./monaco-editor/.github/workflows/nightly/setNightlyVersion.js ./monaco-editor/package.json
|
run: node ./monaco-editor/.github/workflows/nightly/setNightlyVersion.js ./monaco-editor/package.json
|
||||||
|
|
||||||
- name: (monaco-editor) execute `npm ci` (1)
|
- name: (monaco-editor) execute `npm ci` (1)
|
||||||
|
|
@ -169,5 +177,6 @@ jobs:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Publish `monaco-editor`
|
- name: Publish `monaco-editor`
|
||||||
|
if: ${{ github.event.inputs.nightly == 'true' }}
|
||||||
working-directory: './monaco-editor/release'
|
working-directory: './monaco-editor/release'
|
||||||
run: npm publish --tag next
|
run: npm publish --tag next
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue