Unpublish old versions #1
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: "Unpublish old versions" | |
on: | |
workflow_dispatch: | |
inputs: | |
delete_packages: | |
type: boolean | |
description: Delete packages? otherwise dry-run mode will be used | |
default: false | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
clean-npm-versions: | |
name: Unpublish versions next, preview, main... | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: FuelLabs/github-actions/setups/node@master | |
- uses: FuelLabs/github-actions/setups/npm@master | |
with: | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
- run: | | |
node ./scripts/unpublish.js | |
env: | |
DELETE_PACKAGES: ${{ github.event.inputs.delete_packages}} |