Skip to content

chore(deps): update crazy-max/ghaction-github-labeler action to v5 #183

chore(deps): update crazy-max/ghaction-github-labeler action to v5

chore(deps): update crazy-max/ghaction-github-labeler action to v5 #183

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
if: github.repository_owner == 'josh-development'
steps:
- name: Checkout Project
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Use Node.js v16
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: 16
cache: yarn
registry-url: https://registry.yarnpkg.com/
- 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 }}