Update TS version tags weekly (#163)

* Update TS version tags weekly

Probably not quite right, but this should be a good start.

* test with pull_request instead of pr

* just one on

* first try at cloning DT

* try shallow clone

* try a new token

* dummy edit to try github-publish-access-token

* dummy edit to try github-publish-access-token

* switch to scheduled run
This commit is contained in:
Nathan Shively-Sanders
2020-11-11 10:47:55 -08:00
committed by GitHub
parent 6cdf9274dc
commit a02b2e92ab

View File

@@ -0,0 +1,27 @@
name: Update ts* tags for ATA
# For testing
# on: pull_request
# For production
on:
schedule:
# https://crontab.guru/#5_8_*_*_1
- cron: "5 8 * * 1"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: retag
run: |
git clone --depth 1 https://github.com/DefinitelyTyped/DefinitelyTyped ../DefinitelyTyped
yarn
yarn build
node packages/retag/dist/index.js
env:
NPM_TOKEN: ${{ secrets.NPM_RETAG_TOKEN }}
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}