Skip to content

Commit

Permalink
ci(publish): ensure filenames are unique
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Dec 30, 2024
1 parent fe9facc commit 733a096
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,17 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Prepare release artifacts
run: |
mkdir -p dist
for dir in prebuilds/*/; do
platform=$(basename "$dir")
cp "$dir/tree-sitter.node" "dist/tree-sitter-$platform.node"
done
ls -l dist
- name: Create release
run: |-
files=$(find prebuilds -name "*.node")
gh release create ${{ github.ref_name }} --generate-notes $files
gh release create ${{ github.ref_name }} --generate-notes dist/*
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 733a096

Please sign in to comment.