Skip to content

Commit

Permalink
chore(workflow): gh workflow to unpublish package versions from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
atabel committed Sep 13, 2024
1 parent 82b2069 commit c10b2f8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/unpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Unpublish
on:
workflow_dispatch:
inputs:
version:
description: 'version to unpublish'
required: true
jobs:
release:
name: Unpublish
runs-on: ubuntu-latest
steps:
- name: 'Set npm token'
uses: './.github/actions/set-npm-token'
with:
npm-token: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Unpublish npm package version
env:
GITHUB_TOKEN: ${{ secrets.FLOW_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: npm unpublish @telefonica/mistica@${{ github.event.inputs.version }}

0 comments on commit c10b2f8

Please sign in to comment.