Skip to content

chore(deps): update github/codeql-action digest to 2c779ab #204

chore(deps): update github/codeql-action digest to 2c779ab

chore(deps): update github/codeql-action digest to 2c779ab #204

name: NPM Deprecate PR On Merge
on:
pull_request:
types:
- closed
jobs:
deprecate-on-merge:
name: NPM Deprecate PR On Merge
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Use Node.js v20
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 20
cache: yarn
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
run: yarn --immutable
- name: Deprecate versions
run: yarn npm-deprecate --name "*pr-${PR_NUMBER}*" -d -v
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
PR_NUMBER: ${{ github.event.number }}