Skip to content

Commit 5c5fce7

Browse files
committed
Try use auto to deploy node modules
1 parent e8b71cf commit 5c5fce7

5 files changed

Lines changed: 22 additions & 4 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,12 @@ jobs:
4949
AZURE_STORAGE_ACCOUNT: 'typescriptorgstaging'
5050
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_CDN_STAGING_CONNECTION_STRING }}
5151
run: az storage blob upload-batch -s ./site -d \$web
52+
53+
# Deploy
54+
- name: Deploy npm Packages
55+
run: |
56+
yarn add --dev auto
57+
yarn auto shipit
58+
env:
59+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,13 @@
4444
},
4545
"dependencies": {
4646
"serve-handler": "^6.1.2"
47+
},
48+
"repository": "microsoft/TypeScript-Website",
49+
"author": "Orta Therox <[email protected]>",
50+
"auto": {
51+
"plugins": [
52+
"npm"
53+
],
54+
"onlyPublishWithReleaseLabel": true
4755
}
4856
}

packages/playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.1.0",
44
"main": "dist/index.js",
55
"license": "MIT",
6+
"private": true,
67
"typings": "../typescriptlang-org/static/js/playground/index.d.ts",
78
"files": [
89
"dist"

packages/sandbox/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "typescript-sandbox",
33
"version": "0.1.0",
44
"main": "dist/index.js",
5+
"private": true,
56
"license": "MIT",
67
"typings": "../typescriptlang-org/static/js/sandbox/index.d.ts",
78
"files": [

packages/typescriptlang-org/src/pages/dev/twoslash.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,11 @@ const Index: React.FC<Props> = (props) => {
130130
setTimeout(() => {
131131
debouncingTimerLock = false
132132
runTwoslash()
133-
}, 300)
133+
}, 500)
134134
})
135135
runTwoslash()
136136

137137
setTimeout(() => {
138-
139138
document.querySelectorAll("#example-buttons .disabled").forEach(button => {
140139
button.classList.remove("disabled")
141140
})
@@ -189,7 +188,7 @@ const Index: React.FC<Props> = (props) => {
189188

190189
<div className="raised content main-content-block">
191190

192-
<div className="sixhundred">
191+
<div className="sixhundred" style={{ flex: 1 }}>
193192
<SuppressWhenTouch>
194193
<h3 style={{ marginTop: "0" }}>Markup</h3>
195194
<p id="exampleBlurb">{codeSamples[0].blurb}</p>
@@ -214,7 +213,7 @@ const Index: React.FC<Props> = (props) => {
214213
</SuppressWhenTouch>
215214
</div>
216215

217-
<div className="sixhundred" style={{ paddingLeft: "20px", borderLeft: "1px solid gray", position: "relative" }}>
216+
<div style={{ paddingLeft: "20px", borderLeft: "1px solid gray", position: "relative", flex: 1, overflow: "auto" }}>
218217
<SuppressWhenTouch>
219218
<h3 style={{ marginTop: "0" }}>Results</h3>
220219

0 commit comments

Comments
 (0)