Skip to content

Create tags for prod deploys #1460

Create tags for prod deploys

Create tags for prod deploys #1460

name: Create tags for prod deploys
on:
schedule:
# Daily
# https://crontab.guru/#0_12_*_*_*
- cron: "0 12 * * *"
# Whenever someone asks
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # We need the full history to check for preexisting tags
token: ${{ secrets.BOT_GITHUB_TOKEN }}
persist-credentials: true
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
# Setup Git
- run: git config user.name "typescript-bot"
- run: git config user.email "[email protected]"
- name: "Create new tags"
run: |
yarn install
node make-git-tags-for-new-builds.js
git push origin --tags