forked from microsoft/TypeScript-DOM-lib-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 839 Bytes
/
Copy pathdeploy.yml
File metadata and controls
34 lines (28 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy to npm
on:
schedule:
# Daily run
- cron: "0 4 * * *"
workflow_dispatch: null
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "15.x"
registry-url: "https://registry.npmjs.org"
cache: npm
- run: git pull --tags
- run: npm install
- run: npm run build
- run: npm test
- name: Create packages for .d.ts files
run: node deploy/createTypesPackages.js
# Deploy anything which differs from the npm version of a tsconfig
- name: "Deploy built packages to NPM"
run: node deploy/deployChangedPackages.js
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}