Skip to content

Commit

Permalink
fix: npm run install to npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
appsaeed committed May 22, 2024
1 parent dce9bdc commit e877b28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:

# workflow_dispatch:

# push:
# branches:
# - main
push:
branches:
- main

release:
types: [published]
# release:
# types: [published]

jobs:
publish-npm:
Expand Down Expand Up @@ -39,7 +39,6 @@ jobs:
registry-url: https://npm.pkg.github.com/
# scope: "@appsaeed"

- run: npm config set registry https://npm.pkg.github.com
- run: npm install
- run: npm run build
- run: |
Expand All @@ -54,6 +53,8 @@ jobs:
};
})
EOF
- run: npm config set registry https://npm.pkg.github.com
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-svg",
"version": "1.4.0",
"version": "1.5.0",
"description": "Vite SVG plugin: effortless SVG import with support for various formats JSON, raw string, object, etc.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit e877b28

Please sign in to comment.