Skip to content

Publish registry

Publish registry #173

name: Publish registry
on:
schedule:
# https://crontab.guru/#0_0_*_*_0
- cron: 0 0 * * 0
workflow_dispatch:
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
concurrency: publish-packages
jobs:
publish-registry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 'lts/*'
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- run: pnpm install --frozen-lockfile
- run: pnpm build
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ./cache
key: pacote-cache-${{ github.run_id }}-${{ github.run_attempt}}
restore-keys: pacote-cache-
- name: Publish registry
run: pnpm run --filter @definitelytyped/publisher publish-registry
env:
NPM_TOKEN: ${{ secrets.NPM_RETAG_TOKEN }}
- if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
path: packages/definitions-parser/data/
- uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
if: always()
with:
path: ./cache
key: pacote-cache-${{ github.run_id }}-${{ github.run_attempt}}