Skip to content

Commit

Permalink
chore: debug publish with 0.3.2 and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mborne committed Jun 10, 2024
1 parent babda05 commit 6e665ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish package to NPM
name: Node.js Package

on:
release:
Expand All @@ -16,4 +16,4 @@ jobs:
- run: npm install
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Provides an helper to invoke [ogr2ogr](https://www.gdal.org/ogr2ogr.html) and [p
```js
const ogr2pg = require('@mborne/ogr2pg');

ogr2pg({
const result = await ogr2pg({
'inputPath': 'place.shp',
'tableName': 'place'
}).then(function(){
console.log("Table public.place created from 'place.shp'");
}).catch(function(err){
console.log(err.message);
});

console.log(result.status);
console.log(result.message);
console.log(result.command);
```

## Options
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mborne/ogr2pg",
"version": "0.3.1",
"version": "0.3.2",
"description": "Helper to load spatial files with multiple formats into postgis",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6e665ef

Please sign in to comment.