NPM Auto Deprecate #1654
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: NPM Auto Deprecate | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| jobs: | |
| auto-deprecate: | |
| name: NPM Auto Deprecate | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| uses: sapphiredev/.github/actions/install-yarn-dependencies@main | |
| with: | |
| node-version: 20 | |
| - name: Build Dependencies | |
| run: yarn workspaces foreach --all --parallel --include @sapphire/fetch --include @sapphire/utilities run build | |
| - name: Deprecate versions | |
| run: yarn npm-deprecate | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |