Skip to content

NPM Auto Deprecate #779

NPM Auto Deprecate

NPM Auto Deprecate #779

name: NPM Auto Deprecate
on:
schedule:
- cron: '0 0 * * *'
jobs:
auto-deprecate:
name: NPM Auto Deprecate
runs-on: ubuntu-latest
if: github.repository_owner == 'josh-development'
steps:
- name: Checkout Project
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Use Node.js v20
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: 20
cache: yarn
registry-url: https://registry.yarnpkg.com/
- name: Install Dependencies
run: yarn --immutable
- name: Deprecate Versions
run: yarn npm-deprecate
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}