Skip to content

Update ts* tags for ATA #245

Update ts* tags for ATA

Update ts* tags for ATA #245

name: Update ts* tags for ATA
# For testing
# on: pull_request
# For production
on:
workflow_dispatch:
inputs:
checkout:
description: ref to deploy
required: true
default: main
schedule:
# https://crontab.guru/#5_8_*_*_1
- cron: "5 8 * * 1"
env:
CI: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 'lts/*'
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- name: Get pnpm cache info
id: pnpm-cache
shell: bash
run: echo "store=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ${{ steps.pnpm-cache.outputs.store }}
key: ${{ runner.os }}-pnpm-store-cache-${{ github.run_id }}-${{ github.run_attempt }}
restore-keys: |
${{ runner.os }}-pnpm-store-cache-
- run: pnpm install
- run: pnpm build
- run: git clone --depth 1 https://github.com/DefinitelyTyped/DefinitelyTyped ../DefinitelyTyped
- run: pnpm install
working-directory: ../DefinitelyTyped
- name: retag
run: node packages/retag/dist/index.js --path ../DefinitelyTyped
env:
NPM_TOKEN: ${{ secrets.NPM_RETAG_TOKEN }}
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}