Daily builds of changes to the TSConfig bases dir #1555
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- name: Checkout tree | |
uses: actions/checkout@v3 | |
- name: Set-up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
registry-url: https://registry.npmjs.org | |
- name: Set-up Deno | |
uses: denoland/setup-deno@v1 | |
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 | |
- name: "Deploy built packages to NPM" | |
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 }} |