Skip to content

Commit

Permalink
edit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tandyx committed Jun 10, 2024
1 parent 6fc9b9f commit 58c8ffd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
name: Node.js Package

on:
release:
types: [created]
push:
branches: ["master"]
pull_request:
branches: ["master"]
types: [closed]

jobs:
build:
Expand Down Expand Up @@ -33,4 +36,4 @@ jobs:
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_ACCESS}}
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/tests/
tests/
tsconfig.json
package-lock.json
.gitignore
.github/
node_modules/
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"scripts": {},
"dependencies": {
"@types/leaflet": "^1.9.12",
"leaflet-search": "^4.0.0",
"leaflet-search-types": "^0.0.1"
"leaflet-search": "^4.0.0"
},
"directories": {
"test": "tests"
Expand All @@ -35,4 +34,4 @@
"bugs": {
"url": "https://github.com/johan-cho/leaflet-search-types/issues"
}
}
}
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"leaflet.locatecontrol-tests.ts"
"index.d.ts"
]
}

0 comments on commit 58c8ffd

Please sign in to comment.