NPM Auto Deprecate #931
This file contains 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@v4 | |
- name: Use Node.js v20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: yarn | |
registry-url: https://registry.yarnpkg.org/ | |
- name: Install Dependencies | |
run: yarn --immutable | |
- name: Build Dependencies | |
run: yarn turbo run build --filter=@sapphire/utilities --filter=@sapphire/fetch --no-deps | |
- name: Deprecate versions | |
run: yarn npm-deprecate | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |