Skip to content

Commit

Permalink
fix: publish npm on completed Release
Browse files Browse the repository at this point in the history
  • Loading branch information
bchelkowski committed Oct 17, 2023
1 parent 14313de commit 16b178a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Publish NPM
on:
release:
types: [released]
workflow_run:
workflows: [Release]
types: [completed]
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout latest tag
run: |
git fetch --all --tags -f
git rev-list --tags --max-count=1
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 16b178a

Please sign in to comment.