@dpgradio/creative 5.3.2 → 5.3.4
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.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
on: push
|
|
3
|
+
jobs:
|
|
4
|
+
lint-format:
|
|
5
|
+
runs-on: ubuntu-latest
|
|
6
|
+
steps:
|
|
7
|
+
- uses: actions/checkout@v3
|
|
8
|
+
- uses: actions/setup-node@v3
|
|
9
|
+
with:
|
|
10
|
+
node-version: 16
|
|
11
|
+
cache: yarn
|
|
12
|
+
- name: Install dependencies
|
|
13
|
+
run: yarn install --frozen-lockfile
|
|
14
|
+
- name: Lint
|
|
15
|
+
run: yarn lint-check
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Publish Package to npmjs
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [published]
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v3
|
|
10
|
+
- uses: actions/setup-node@v3
|
|
11
|
+
with:
|
|
12
|
+
node-version: 16
|
|
13
|
+
registry-url: 'https://registry.npmjs.org'
|
|
14
|
+
# Defaults to the user or organization that owns the workflow file
|
|
15
|
+
scope: '@octocat'
|
|
16
|
+
cache: yarn
|
|
17
|
+
- name: Git configuration
|
|
18
|
+
run: |
|
|
19
|
+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
20
|
+
git config --global user.name "GitHub Actions"
|
|
21
|
+
- run: yarn
|
|
22
|
+
- run: yarn publish --new-version ${{ github.event.release.tag_name }}
|
|
23
|
+
env:
|
|
24
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
25
|
+
- name: Commit package.json
|
|
26
|
+
run: |
|
|
27
|
+
git add "package.json"
|
|
28
|
+
git commit -m "Release ${{ github.event.release.tag_name }}"
|
|
29
|
+
- name: Push changes to repository
|
|
30
|
+
env:
|
|
31
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
32
|
+
run: |
|
|
33
|
+
git push origin
|
package/package-lock.json
CHANGED
package/package.json
CHANGED
package/src/config/config.js
CHANGED
|
@@ -21,7 +21,7 @@ class Configuration {
|
|
|
21
21
|
async retrieveConfigForDetectedStation(appId = null) {
|
|
22
22
|
const parameters = new URLSearchParams(window.location.search)
|
|
23
23
|
if (parameters.has('stationId')) {
|
|
24
|
-
return this.retrieveConfigForStation(
|
|
24
|
+
return this.retrieveConfigForStation(parameters.get('stationId'), appId)
|
|
25
25
|
}
|
|
26
26
|
return this.retrieveConfigByHostname(appId)
|
|
27
27
|
}
|