@geolonia/embed 3.0.0 → 3.1.1
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/build.yml +23 -9
- package/dist/embed +1 -1
- package/dist/embed.js +1 -1
- package/package.json +2 -2
- package/src/lib/geolonia-map.js +5 -0
- package/src/lib/simplestyle-vector.js +4 -3
- package/src/lib/simplestyle.js +5 -4
- package/src/lib/simplestyle.test.js +1 -0
- package/src/lib/util.js +8 -0
- package/src/lib/util.test.js +27 -0
|
@@ -17,13 +17,13 @@ jobs:
|
|
|
17
17
|
matrix:
|
|
18
18
|
node-version: ['14.x', '16.x', '18.x']
|
|
19
19
|
steps:
|
|
20
|
-
- uses: actions/checkout@
|
|
20
|
+
- uses: actions/checkout@v3
|
|
21
21
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
22
|
-
uses: actions/setup-node@
|
|
22
|
+
uses: actions/setup-node@v3
|
|
23
23
|
with:
|
|
24
24
|
node-version: ${{ matrix.node-version }}
|
|
25
25
|
- name: Cache node_modules
|
|
26
|
-
uses: actions/cache@
|
|
26
|
+
uses: actions/cache@v3
|
|
27
27
|
with:
|
|
28
28
|
path: node_modules
|
|
29
29
|
key: modules-cache-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
|
@@ -32,7 +32,7 @@ jobs:
|
|
|
32
32
|
- run: yarn test
|
|
33
33
|
- run: yarn build
|
|
34
34
|
- name: save the built
|
|
35
|
-
uses: actions/upload-artifact@
|
|
35
|
+
uses: actions/upload-artifact@v3
|
|
36
36
|
if: "!failure()"
|
|
37
37
|
with:
|
|
38
38
|
retention-days: 1
|
|
@@ -48,8 +48,8 @@ jobs:
|
|
|
48
48
|
- build
|
|
49
49
|
if: ${{ github.ref == 'refs/heads/master' }}
|
|
50
50
|
steps:
|
|
51
|
-
- uses: actions/checkout@
|
|
52
|
-
- uses: actions/setup-node@
|
|
51
|
+
- uses: actions/checkout@v3
|
|
52
|
+
- uses: actions/setup-node@v3
|
|
53
53
|
with:
|
|
54
54
|
node-version: '14.x'
|
|
55
55
|
- name: Clean repo
|
|
@@ -57,7 +57,7 @@ jobs:
|
|
|
57
57
|
git checkout --orphan gh-pages
|
|
58
58
|
git rm -rf . > /dev/null 2>&1
|
|
59
59
|
- name: load the built
|
|
60
|
-
uses: actions/download-artifact@
|
|
60
|
+
uses: actions/download-artifact@v3
|
|
61
61
|
with:
|
|
62
62
|
name: the-built
|
|
63
63
|
- name: Setup and deploy Github Pages
|
|
@@ -77,8 +77,8 @@ jobs:
|
|
|
77
77
|
- build
|
|
78
78
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
79
79
|
steps:
|
|
80
|
-
- uses: actions/checkout@
|
|
81
|
-
- uses: actions/setup-node@
|
|
80
|
+
- uses: actions/checkout@v3
|
|
81
|
+
- uses: actions/setup-node@v3
|
|
82
82
|
with:
|
|
83
83
|
tag_name: 'v%s'
|
|
84
84
|
node-version: '14.x'
|
|
@@ -98,3 +98,17 @@ jobs:
|
|
|
98
98
|
run: npm publish --access=public --tag=next
|
|
99
99
|
env:
|
|
100
100
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
101
|
+
- name: 'Checkout geolonia/cdn.geolonia.com'
|
|
102
|
+
uses: actions/checkout@v3
|
|
103
|
+
with:
|
|
104
|
+
token: ${{ secrets.PAT_FOR_CDN_GEOLONIA_COM }}
|
|
105
|
+
repository: geolonia/cdn.geolonia.com
|
|
106
|
+
path: ./cdn.geolonia.com
|
|
107
|
+
- name: 'Build Embed API'
|
|
108
|
+
run: npm run build:embed
|
|
109
|
+
working-directory: ./cdn.geolonia.com
|
|
110
|
+
- name: 'Create PR in geolonia/cdn.geolonia.com'
|
|
111
|
+
uses: peter-evans/create-pull-request@v4
|
|
112
|
+
with:
|
|
113
|
+
token: ${{ secrets.PAT_FOR_CDN_GEOLONIA_COM }}
|
|
114
|
+
path: ./cdn.geolonia.com
|