Skip to content

Commit

Permalink
Allow re-publishing same version #207
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Aug 22, 2023
1 parent 95829eb commit 03af7f3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,24 @@ jobs:

- run: npm install
- run: npm run package-turf

- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]

- uses: castlabs/[email protected]
id: versions
with:
version: ${{steps.package-version.outputs.current-version}}
token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/delete-package-versions@v2
if: ${{ steps.versions.outputs.ids != '' }}
with:
package-version-ids: "${{ steps.versions.outputs.ids }}"
token: ${{ secrets.GITHUB_TOKEN }}


- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 03af7f3

Please sign in to comment.