@openaddresses/batch-schema 3.1.0 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +29 -0
- package/CHANGELOG.md +12 -0
- package/lib/schema.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: NPM Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- '*'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v2
|
|
13
|
+
|
|
14
|
+
- name: Get tag
|
|
15
|
+
id: tag
|
|
16
|
+
uses: dawidd6/action-get-tag@v1
|
|
17
|
+
|
|
18
|
+
- uses: actions/setup-node@v1
|
|
19
|
+
with:
|
|
20
|
+
node-version: 18
|
|
21
|
+
registry-url: https://registry.npmjs.org/
|
|
22
|
+
|
|
23
|
+
- name: npm install
|
|
24
|
+
run: npm install
|
|
25
|
+
|
|
26
|
+
- name: npm publish
|
|
27
|
+
run: npm publish
|
|
28
|
+
env:
|
|
29
|
+
NPM_TOKEN: ${{ secrets.NPM_SECRET }}
|
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
|
|
11
11
|
## Version History
|
|
12
12
|
|
|
13
|
+
### v3.1.3
|
|
14
|
+
|
|
15
|
+
- :rocket: Add automated releases
|
|
16
|
+
|
|
17
|
+
### v3.1.2
|
|
18
|
+
|
|
19
|
+
- :bug: Internal schema path
|
|
20
|
+
|
|
21
|
+
### v3.1.1
|
|
22
|
+
|
|
23
|
+
- :bug: Internal schema path
|
|
24
|
+
|
|
13
25
|
### v3.0.1
|
|
14
26
|
|
|
15
27
|
- :rocket: Add `.main` property to package.json
|
package/lib/schema.js
CHANGED
|
@@ -119,7 +119,7 @@ export default class Schemas {
|
|
|
119
119
|
if (!schemas[type]) continue;
|
|
120
120
|
|
|
121
121
|
try {
|
|
122
|
-
schemas[type] = await $RefParser.dereference(`../schema/${schemas[type]}
|
|
122
|
+
schemas[type] = await $RefParser.dereference((new URL(`../schema/${schemas[type]}`, import.meta.url)).pathname);
|
|
123
123
|
} catch (err) {
|
|
124
124
|
schemas[type] = await $RefParser.dereference(`${this.schemas_path}/${schemas[type]}`);
|
|
125
125
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"root": true,
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"version": "3.1.
|
|
6
|
+
"version": "3.1.3",
|
|
7
7
|
"description": "Strongly Validated JSON Schema support for address",
|
|
8
8
|
"repository": "git@github.com:openaddresses/batch-schema",
|
|
9
9
|
"author": "ingalls <nick@ingalls.ca>",
|