Skip to content

Deprecate package on npm #235

Deprecate package on npm

Deprecate package on npm #235

Workflow file for this run

---
name: Deprecate package on npm
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: read # for checkout
jobs:
deprecate-overlays:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_DEPRECATE_TOKEN }}" > ~/.npmrc
- run: >
npm deprecate "@sanity/scheduled-publishing@1.x" "As of v3.39.0 of Sanity Studio, this plugin has been deprecated and the Scheduled Publishing functionality has been moved into the core studio package. Read more and learn how to update your configuration in the Sanity docs: https://www.sanity.io/docs/scheduled-publishing" || true