@geolonia/embed 2.0.0-pre.0 → 2.0.0-pre.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.
package/.eslintrc.js CHANGED
@@ -7,6 +7,7 @@ module.exports = {
7
7
  mocha: true,
8
8
  },
9
9
  extends: ['@geolonia'],
10
+ parser: 'babel-eslint',
10
11
  parserOptions: {
11
12
  ecmaVersion: 2018,
12
13
  sourceType: 'module',
@@ -55,7 +55,7 @@ jobs:
55
55
  path: node_modules
56
56
  key: modules-cache-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
57
57
  - run: npm install
58
- - run: "npm run build:embed"
58
+ - run: "npm run build"
59
59
  - name: Build and push to local registry
60
60
  uses: docker/build-push-action@v2
61
61
  with:
@@ -117,6 +117,13 @@ jobs:
117
117
  uses: actions/download-artifact@v2
118
118
  with:
119
119
  name: the-built
120
- - run: npm publish --access=public
120
+ - name: 'Publish to NPM (latest)'
121
+ if: "!contains(github.ref, '-pre.')"
122
+ run: npm publish --access=public
123
+ env:
124
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
125
+ - name: 'Publish to NPM (next)'
126
+ if: "contains(github.ref, '-pre.')"
127
+ run: npm publish --access=public --tag=next
121
128
  env:
122
129
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/README.md CHANGED
@@ -57,6 +57,12 @@ $ npm run build # build production bundle
57
57
 
58
58
  Then you can see `http://localhost:3000/`.
59
59
 
60
+ ## Run Bundle analyzer
61
+
62
+ ```shell
63
+ $ npm run analyze
64
+ ```
65
+
60
66
  ## Snapshot testing
61
67
 
62
68
  ### preparation
@@ -64,7 +70,7 @@ Then you can see `http://localhost:3000/`.
64
70
  ```shell
65
71
  $ cp .envrc.sample .envrc
66
72
  $ vi .envrc
67
- $ npm run build:embed
73
+ $ npm run build
68
74
  $ docker build . -t geolonia/embed
69
75
  ```
70
76