Skip to content

Commit

Permalink
resolve package.json issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Jan 16, 2025
1 parent c53ea6e commit 426b3c4
Show file tree
Hide file tree
Showing 16 changed files with 259 additions and 605 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ jobs:
with:
version: 9

# - uses: jetli/[email protected]
# with:
# version: 'latest'

- name: Install wasm-pack
run: cargo install wasm-pack

Expand Down Expand Up @@ -82,8 +78,21 @@ jobs:
PKG_PATH=$(find packages -type d -name "${{ matrix.package }}" -print -quit)
echo "the_path=$PKG_PATH" >> "$GITHUB_OUTPUT"
- name: Check NPM Version
id: check_version
run: |
PACKAGE_JSON="${{ steps.find_package.outputs.the_path }}/package.json"
PACKAGE_NAME=$(jq -r .name "$PACKAGE_JSON")
PACKAGE_VERSION=$(jq -r .version "$PACKAGE_JSON")
if npm show "$PACKAGE_NAME@$PACKAGE_VERSION" > /dev/null 2>&1; then
echo "version_exists=true" >> "$GITHUB_OUTPUT"
else
echo "version_exists=false" >> "$GITHUB_OUTPUT"
fi
- name: Publish Package
id: publish
if: steps.check_version.outputs.version_exists == 'false'
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/api/wrapper/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
**@notemine/wrapper API v0.0.6****Docs**
**@notemine/wrapper API v0.0.7**

***

# @notemine/wrapper API v0.0.6
# @notemine/wrapper API v0.0.7

## Classes

Expand Down
Loading

0 comments on commit 426b3c4

Please sign in to comment.