mirror of
https://github.com/chenasraf/DefinitelyTyped-tools.git
synced 2026-05-18 01:49:03 +00:00
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:
committed by
GitHub
parent
6cdf9274dc
commit
a02b2e92ab
27
.github/workflows/update-ts-version-tags.yml
vendored
Normal file
27
.github/workflows/update-ts-version-tags.yml
vendored
Normal 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 }}
|
||||
|
||||
Reference in New Issue
Block a user