Skip to content

Commit

Permalink
fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
kettei-sproutty committed Jan 16, 2024
1 parent 47a28b1 commit 82f5479
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,23 @@ jobs:
release-type: node
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo fmt --all -- --check
- run: wasm-pack pack
if: ${{ steps.release.outputs.release_created }}
- name: Update Package Name
if: ${{ steps.release.outputs.release_created }}
run: |
# Set the new name for the "name" field
new_name="@scuderia-fe/docx-to-html"
if [ -d "pkg" ]; then
cd pkg || exit
if [ -f "package.json" ]; then
# Update the "name" field in package.json
sed -i "s/\"name\": \".*\",/\"name\": \"$new_name\",/" package.json
echo "Package name updated to $new_name"
else
echo "Error: package.json not found in the pkg folder."
fi
cd ..
else
echo "Error: pkg folder not found."
Expand Down

0 comments on commit 82f5479

Please sign in to comment.