-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 1004 Bytes
/
deploy.yml
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
35
36
37
38
39
40
41
name: Daily builds of changes to the TSConfig bases dir
# For testing
# on: push
# For production
on:
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: "10.x"
registry-url: "https://registry.npmjs.org"
- uses: denolib/setup-deno@master
with:
deno-version: v1.x
# Build all the packages
- name: Create packages for TSConfig JSONs
run: deno run --allow-read --allow-write --allow-net scripts/create-npm-packages.ts
# Deploy anything which differs from the npm version of a tsconfig
- run: |
deno run --allow-read --allow-run --allow-env --allow-net scripts/deploy-changed-npm-packages.ts
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
name: 'Deploy built packages to NPM'