@coherentglobal/wasm-runner 0.0.91 → 0.0.97

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.
Files changed (33) hide show
  1. package/dist/browser/logger.d.ts +2 -2
  2. package/dist/browser/logger.js +36 -62
  3. package/dist/browser/logger.js.map +1 -1
  4. package/dist/browser/template/main.template.d.ts +1 -1
  5. package/dist/browser/template/main.template.js +4 -1
  6. package/dist/browser/template/main.template.js.map +1 -1
  7. package/dist/browser/template/worker.template.d.ts +20 -2
  8. package/dist/browser/template/worker.template.js +234 -59
  9. package/dist/browser/template/worker.template.js.map +1 -1
  10. package/dist/browser/template.d.ts +1 -1
  11. package/dist/browser/template.js +5 -2
  12. package/dist/browser/template.js.map +1 -1
  13. package/dist/browser.js +26 -14
  14. package/dist/browser.js.map +1 -1
  15. package/dist/node/mockLogger.js +2 -2
  16. package/dist/node/mockLogger.js.map +1 -1
  17. package/dist/node/template/main.template.ejs +108 -10
  18. package/dist/node.js +65 -2
  19. package/dist/node.js.map +1 -1
  20. package/dist/serializer/columnarSerializer.js +1 -1
  21. package/dist/serializer/columnarSerializer.js.map +1 -1
  22. package/dist/types.d.ts +2 -0
  23. package/package.json +12 -16
  24. package/.github/workflows/build-publish-public.yml +0 -104
  25. package/.github/workflows/build-publish.yml +0 -141
  26. package/.github/workflows/code-quality.yml +0 -103
  27. package/.github/workflows/pull-request.yml +0 -14
  28. package/.github/workflows/test-multple-browsers.yml +0 -88
  29. package/.github/workflows/test-mutiple-os.yml +0 -54
  30. package/circleci/config.yml +0 -200
  31. package/selenium/headless.test.js +0 -83
  32. package/sonar-project.properties +0 -11
  33. package/tsconfig.json +0 -29
@@ -1,104 +0,0 @@
1
- name: Build and Publish Action
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- - main
8
- tags:
9
- - v[0-9]+.[0-9]+.[0-9]+
10
-
11
- jobs:
12
- test:
13
- name: Test
14
- uses: ./.github/workflows/code-quality.yml
15
- secrets:
16
- SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
17
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
18
-
19
- test-mutiple-os:
20
- name: Test OS
21
- uses: ./.github/workflows/test-mutiple-os.yml
22
-
23
- test-browsers:
24
- name: Test Browsers
25
- uses: ./.github/workflows/test-multple-browsers.yml
26
-
27
- publish-js-bundles:
28
- needs: build-publish-public
29
- name: Publish JS bundle-js
30
- runs-on: ubuntu-latest
31
- steps:
32
- - name: Checkout
33
- uses: actions/checkout@v3
34
- - uses: actions/setup-node@v3
35
- with:
36
- node-version: 16
37
- - name: Get yarn cache directory path
38
- id: yarn-cache-dir-path
39
- run: echo "::set-output name=dir::$(yarn cache dir)"
40
-
41
- - name: Restore yarn cache
42
- id: yarn-cache
43
- uses: actions/cache@v3
44
- with:
45
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
46
- key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
47
- restore-keys: |
48
- ${{ runner.os }}-yarn-
49
-
50
- - name: Create Javascript Bundle
51
- run: |
52
- yarn install --frozen-lockfile
53
- mkdir lib
54
- yarn bundle
55
-
56
- - name: Configure AWS Credentials
57
- uses: aws-actions/configure-aws-credentials@v1
58
- with:
59
- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
60
- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
61
- aws-region: ${{ secrets.AWS_REGION }}
62
-
63
- - name: Uploading JS Bundle to S3...
64
- env:
65
- S3_BUCKET: ${{ secrets.S3_BUCKET }}
66
- run: |
67
- aws s3 sync ./lib $S3_BUCKET
68
-
69
- build-publish-public:
70
- needs: [test, test-mutiple-os, test-browsers]
71
- name: Build & Publish [NPM]
72
- environment: PUBLIC
73
- runs-on: ubuntu-latest
74
- steps:
75
- - name: Checkout
76
- uses: actions/checkout@v3
77
-
78
- - name: Get yarn cache directory path
79
- id: yarn-cache-dir-path
80
- run: echo "::set-output name=dir::$(yarn cache dir)"
81
-
82
- - name: Restore yarn cache
83
- id: yarn-cache
84
- uses: actions/cache@v3
85
- with:
86
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
87
- key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
88
- restore-keys: |
89
- ${{ runner.os }}-yarn-
90
-
91
- - name: Setup Node
92
- uses: actions/setup-node@v3
93
- with:
94
- node-version: 16
95
- registry-url: 'https://registry.npmjs.org'
96
- always-auth: true
97
-
98
- - name: Install dependencies and build 🔧
99
- run: yarn install && yarn run build
100
-
101
- - name: Publish package on NPM 📦
102
- run: npm publish --access public
103
- env:
104
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -1,141 +0,0 @@
1
- name: Build and Publish Action
2
-
3
- on:
4
- push:
5
- branches:
6
- - dev
7
-
8
- jobs:
9
- test:
10
- name: Test
11
- uses: ./.github/workflows/code-quality.yml
12
- secrets:
13
- SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
14
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
15
-
16
- publish-js-bundles:
17
- needs: [test]
18
- name: Publish JS bundle-js
19
- runs-on: ubuntu-latest
20
- steps:
21
- - name: Checkout
22
- uses: actions/checkout@v3
23
- - uses: actions/setup-node@v3
24
- with:
25
- node-version: 16
26
- - name: Get yarn cache directory path
27
- id: yarn-cache-dir-path
28
- run: echo "::set-output name=dir::$(yarn cache dir)"
29
-
30
- - name: Restore yarn cache
31
- id: yarn-cache
32
- uses: actions/cache@v3
33
- with:
34
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
35
- key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
36
- restore-keys: |
37
- ${{ runner.os }}-yarn-
38
-
39
- - name: Create Javascript Bundle
40
- run: |
41
- yarn install --frozen-lockfile
42
- mkdir lib
43
- yarn bundle
44
-
45
- - name: Configure AWS Credentials
46
- uses: aws-actions/configure-aws-credentials@v1
47
- with:
48
- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
49
- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
50
- aws-region: ${{ secrets.AWS_REGION }}
51
-
52
- - name: Uploading JS Bundle to S3...
53
- env:
54
- S3_BUCKET: ${{ secrets.S3_BUCKET }}
55
- run: |
56
- aws s3 sync ./lib $S3_BUCKET
57
-
58
- build-publish:
59
- needs: test
60
- name: Build & Publish [CodeArtifact]
61
- runs-on: ubuntu-latest
62
- steps:
63
- - name: Checkout
64
- uses: actions/checkout@v3
65
- - uses: actions/setup-node@v3
66
- with:
67
- node-version: 16
68
- - name: Get yarn cache directory path
69
- id: yarn-cache-dir-path
70
- run: echo "::set-output name=dir::$(yarn cache dir)"
71
-
72
- - name: Restore yarn cache
73
- id: yarn-cache
74
- uses: actions/cache@v3
75
- with:
76
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
77
- key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
78
- restore-keys: |
79
- ${{ runner.os }}-yarn-
80
-
81
- - name: Configure AWS Credentials
82
- uses: aws-actions/configure-aws-credentials@v1
83
- with:
84
- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
85
- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
86
- aws-region: ${{ secrets.AWS_REGION }}
87
-
88
- - name: get-authorization-token
89
- env:
90
- AWS_ACCOUNT: ${{ secrets.AWS_ACCOUNT }}
91
- run: |
92
- export CODEARTIFACT_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain coherent-global --domain-owner $AWS_ACCOUNT --query authorizationToken --output text`
93
- cat <<EOF >> .npmrc
94
- registry=https://registry.npmjs.org
95
- @coherentglobal:registry=https://coherent-global-$AWS_ACCOUNT.d.codeartifact.ap-southeast-1.amazonaws.com/npm/coherent-global/
96
- //coherent-global-$AWS_ACCOUNT.d.codeartifact.ap-southeast-1.amazonaws.com/npm/coherent-global/:always-auth=true
97
- //coherent-global-$AWS_ACCOUNT.d.codeartifact.ap-southeast-1.amazonaws.com/npm/coherent-global/:_authToken=${CODEARTIFACT_AUTH_TOKEN}
98
- EOF
99
-
100
- - name: Install dependencies and build 🔧
101
- run: yarn install && yarn run build
102
-
103
- - name: Publish
104
- run: yarn publish --non-interactive
105
-
106
- build-publish-public:
107
- needs: build-publish
108
- name: Build & Publish [NPM]
109
- environment: PUBLIC
110
- runs-on: ubuntu-latest
111
- steps:
112
- - name: Checkout
113
- uses: actions/checkout@v3
114
-
115
- - name: Get yarn cache directory path
116
- id: yarn-cache-dir-path
117
- run: echo "::set-output name=dir::$(yarn cache dir)"
118
-
119
- - name: Restore yarn cache
120
- id: yarn-cache
121
- uses: actions/cache@v3
122
- with:
123
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
124
- key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
125
- restore-keys: |
126
- ${{ runner.os }}-yarn-
127
-
128
- - name: Setup Node
129
- uses: actions/setup-node@v3
130
- with:
131
- node-version: 16
132
- registry-url: 'https://registry.npmjs.org'
133
- always-auth: true
134
-
135
- - name: Install dependencies and build 🔧
136
- run: yarn install && yarn run build
137
-
138
- - name: Publish package on NPM 📦
139
- run: npm publish --access public
140
- env:
141
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -1,103 +0,0 @@
1
- name: Code Quality
2
-
3
- on:
4
- workflow_call:
5
- secrets:
6
- SONAR_HOST_URL:
7
- required: true
8
- SONAR_TOKEN:
9
- required: true
10
- jobs:
11
- code-quality:
12
- name: Code Quality
13
- runs-on: ubuntu-latest
14
-
15
- permissions:
16
- packages: write
17
- contents: read
18
-
19
- steps:
20
- - name: Checkout
21
- uses: actions/checkout@v3
22
- with:
23
- fetch-depth: 0
24
-
25
- - uses: actions/setup-node@v3
26
- with:
27
- node-version: 16
28
-
29
- - name: Get yarn cache directory path
30
- id: yarn-cache-dir-path
31
- run: echo "::set-output name=dir::$(yarn cache dir)"
32
-
33
- - name: Restore yarn cache
34
- id: yarn-cache
35
- uses: actions/cache@v3
36
- with:
37
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
38
- key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
39
- restore-keys: |
40
- ${{ runner.os }}-yarn-
41
-
42
- - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
43
- name: List the state of node modules
44
- continue-on-error: true
45
- run: npm list
46
-
47
- - name: Install dependencies and build 🔧
48
- run: yarn install
49
-
50
- - name: Run test-reports
51
- run: yarn test
52
-
53
- - name: Run coverage
54
- run: |
55
- mkdir .nyc_output
56
- yarn cover
57
-
58
- - name: SonarQube PR Settings
59
- run: |
60
- if [ -n "${{ github.event.pull_request.number }}" ]
61
- then
62
- cat << EOF >> sonar-project.properties
63
- sonar.pullrequest.branch=${GITHUB_HEAD_REF}
64
- sonar.pullrequest.key=${{ github.event.pull_request.number }}
65
- sonar.projectVersion=${GITHUB_SHA}
66
- sonar.host.url=${{ secrets.SONAR_HOST_URL }}
67
- sonar.login=${{ secrets.SONAR_TOKEN }}
68
- EOF
69
- else
70
- cat << EOF >> sonar-project.properties
71
- sonar.branch.name=${GITHUB_REF_NAME}
72
- sonar.projectVersion=${GITHUB_SHA}
73
- sonar.host.url=${{ secrets.SONAR_HOST_URL }}
74
- sonar.login=${{ secrets.SONAR_TOKEN }}
75
- EOF
76
- fi
77
- mkdir -p /tmp/cache/scanner
78
-
79
- - name: Restore Sonar cache
80
- id: cache-sonar
81
- uses: actions/cache@v3
82
- with:
83
- path: /tmp/cache/scanner
84
- key: sonarcloud-scanner-v1-${{ hashFiles('**/yarn.lock') }}
85
- restore-keys: sonarcloud-scanner-v1-
86
-
87
- - name: SonarQube Scan
88
- if: always()
89
- continue-on-error: true
90
- run: |
91
- set -e
92
- VERSION=4.4.0.2170
93
- SCANNER_DIRECTORY=/tmp/cache/scanner
94
- export SONAR_USER_HOME=$SCANNER_DIRECTORY/.sonar
95
- OS="linux"
96
- cat sonar-project.properties
97
- if [[ ! -x "$SCANNER_DIRECTORY/sonar-scanner-$VERSION-$OS/bin/sonar-scanner" ]]; then
98
- curl -o /tmp/sonar-scanner.zip -L https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$VERSION-$OS.zip
99
- unzip -qq -o /tmp/sonar-scanner.zip -d $SCANNER_DIRECTORY
100
- fi
101
- chmod +x $SCANNER_DIRECTORY/sonar-scanner-$VERSION-$OS/bin/sonar-scanner
102
- chmod +x $SCANNER_DIRECTORY/sonar-scanner-$VERSION-$OS/jre/bin/java
103
- $SCANNER_DIRECTORY/sonar-scanner-$VERSION-$OS/bin/sonar-scanner
@@ -1,14 +0,0 @@
1
- name: Pull Request Action
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - dev
7
- - main
8
- jobs:
9
- tests:
10
- name: Test
11
- uses: ./.github/workflows/code-quality.yml
12
- secrets:
13
- SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
14
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
@@ -1,88 +0,0 @@
1
- name: Selenium Test
2
-
3
- on:
4
- workflow_call:
5
-
6
- jobs:
7
- test:
8
- name: ${{ matrix.browser }}
9
- strategy:
10
- fail-fast: false
11
- matrix:
12
- include:
13
- - browser: 'chrome'
14
- os: ubuntu-latest
15
- - browser: 'firefox'
16
- os: ubuntu-latest
17
- - browser: 'edge'
18
- os: windows-latest
19
- - browser: 'safari'
20
- os: macOS-latest
21
- - browser: 'opera'
22
- os: ubuntu-latest
23
- runs-on: ${{ matrix.os }}
24
-
25
- steps:
26
- - name: Checkout repository
27
- uses: actions/checkout@v3
28
-
29
- - name: Setup Node.js
30
- uses: actions/setup-node@v2
31
- with:
32
- node-version: '16'
33
-
34
- - name: Get yarn cache directory path
35
- id: yarn-cache-dir-path
36
- run: echo "::set-output name=dir::$(yarn cache dir)"
37
-
38
- - name: Restore yarn cache
39
- id: yarn-cache
40
- uses: actions/cache@v3
41
- with:
42
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
43
- key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
44
- restore-keys: |
45
- ${{ runner.os }}-yarn-
46
-
47
- - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
48
- name: List the state of node modules
49
- continue-on-error: true
50
- run: yarn list
51
-
52
- - name: Install dependencies
53
- run: |
54
- mkdir lib
55
- yarn install && yarn run build && yarn bundle
56
-
57
- - name: Start HTTP server
58
- shell: bash
59
- run: |
60
- DEBUG=http-server:* npx http-server -p 5500 > server.log 2>&1 &
61
- echo "Waiting for server to start..."
62
- i=0
63
- while [ $i -lt 120 ]; do
64
- if curl --output /dev/null --silent --head --fail http://localhost:5500; then
65
- echo "Server is up"
66
- break
67
- else
68
- echo "Server not up yet, retrying..."
69
- sleep 1
70
- i=$((i+1))
71
- fi
72
- done
73
- if [ $i -eq 120 ]; then
74
- echo "Server failed to start after 120 seconds"
75
- exit 1
76
- fi
77
- cat server.log
78
-
79
- - name: Install Opera
80
- if: matrix.browser == 'opera'
81
- run: |
82
- wget -qO- https://deb.opera.com/archive.key | sudo apt-key add -
83
- sudo add-apt-repository "deb [arch=i386,amd64] https://deb.opera.com/opera-stable/ stable non-free"
84
- sudo apt-get update
85
- sudo apt-get install opera-stable
86
-
87
- - name: Run tests on ${{ matrix.browser }}
88
- run: yarn test:${{ matrix.browser }}
@@ -1,54 +0,0 @@
1
- name: Test
2
-
3
- on:
4
- workflow_call:
5
-
6
- jobs:
7
- test:
8
- name: ${{ matrix.os }}
9
- runs-on: ${{ matrix.os }}
10
-
11
- strategy:
12
- fail-fast: false
13
- matrix:
14
- os: [ubuntu-latest, windows-latest, macos-latest]
15
- node-version: [16.x]
16
-
17
- permissions:
18
- packages: write
19
- contents: read
20
-
21
- steps:
22
- - name: Checkout
23
- uses: actions/checkout@v3
24
- with:
25
- fetch-depth: 0
26
-
27
- - name: Use Node.js ${{ matrix.node-version }}
28
- uses: actions/setup-node@v3
29
- with:
30
- node-version: ${{ matrix.node-version }}
31
-
32
- - name: Get yarn cache directory path
33
- id: yarn-cache-dir-path
34
- run: echo "::set-output name=dir::$(yarn cache dir)"
35
-
36
- - name: Restore yarn cache
37
- id: yarn-cache
38
- uses: actions/cache@v3
39
- with:
40
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
41
- key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
42
- restore-keys: |
43
- ${{ runner.os }}-yarn-
44
-
45
- - if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }}
46
- name: List the state of node modules
47
- continue-on-error: true
48
- run: yarn list
49
-
50
- - name: Install dependencies and build 🔧
51
- run: yarn install
52
-
53
- - name: Run test-reports
54
- run: yarn test
@@ -1,200 +0,0 @@
1
- version: 2.1
2
-
3
- aliases:
4
- - &working-dir /tmp/project
5
-
6
- commands:
7
- persist-working-dir:
8
- steps:
9
- - persist_to_workspace:
10
- root: *working-dir
11
- paths:
12
- - .
13
-
14
- save-repo-cache:
15
- steps:
16
- - save_cache:
17
- name: Save Repo Cache
18
- key: source-v1-{{ .Branch }}-{{ .Revision }}
19
- paths:
20
- - .
21
-
22
- save-yarn-package-cache:
23
- steps:
24
- - save_cache:
25
- key: yarn-packages-v1-{{ checksum "yarn.lock" }}
26
- paths:
27
- - node_modules
28
-
29
- restore-repo-cache:
30
- steps:
31
- - restore_cache:
32
- name: Restore Repo Cache
33
- keys:
34
- - source-v1-{{ .Branch }}-{{ .Revision }}
35
- - source-v1-{{ .Branch }}-
36
- - source-v1-
37
-
38
- restore-yarn-cache:
39
- steps:
40
- - restore_cache:
41
- name: Restore Yarn Package Cache
42
- keys:
43
- - yarn-packages-v1-{{ checksum "yarn.lock" }}
44
-
45
- aws-token-init:
46
- steps:
47
- - aws-cli/setup:
48
- profile-name: awscircleci
49
- - run:
50
- name: Setup AWS Token
51
- command: |
52
- export CODEARTIFACT_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain coherent-global --domain-owner ${AWS_MNL_ACCOUNT} --query authorizationToken --output text`
53
- cat \<<EOF >> .npmrc
54
- registry=https://coherent-global-${AWS_MNL_ACCOUNT}.d.codeartifact.ap-southeast-1.amazonaws.com/npm/coherent-global/
55
- //coherent-global-${AWS_MNL_ACCOUNT}.d.codeartifact.ap-southeast-1.amazonaws.com/npm/coherent-global/:always-auth=true
56
- //coherent-global-${AWS_MNL_ACCOUNT}.d.codeartifact.ap-southeast-1.amazonaws.com/npm/coherent-global/:_authToken=${CODEARTIFACT_AUTH_TOKEN}
57
- EOF
58
-
59
- install-dependencies:
60
- steps:
61
- - run:
62
- name: Install Dependencies
63
- command: |
64
- yarn install --frozen-lockfile
65
-
66
- build:
67
- steps:
68
- - run:
69
- name: Build
70
- command: |
71
- yarn build
72
-
73
- publish:
74
- steps:
75
- - run:
76
- name: Publish Package
77
- command: |
78
- yarn publish --non-interactive
79
-
80
- npm-config-set:
81
- steps:
82
- - run:
83
- name: Setup NPM config
84
- command: |
85
- npm config set scope coherentglobal
86
- echo "//registry.npmjs.org/:_authToken=${npm_TOKEN}" > .npmrc
87
-
88
- publish_npm:
89
- steps:
90
- - run:
91
- name: Publish Package to NPM
92
- command: |
93
- npm publish --access=public
94
-
95
- bundle-js:
96
- steps:
97
- - run:
98
- name: Create lib Folder
99
- command: |
100
- mkdir lib
101
- - run:
102
- name: Create Javascript Bundle
103
- command: |
104
- yarn bundle
105
-
106
- executors:
107
- node-lts:
108
- docker:
109
- - image: cimg/node:lts
110
- working_directory: *working-dir
111
-
112
- orbs:
113
- aws-cli: circleci/aws-cli@2.0.0
114
- aws-s3: circleci/aws-s3@3.0.0
115
-
116
- workflows:
117
- pipeline:
118
- jobs:
119
- - init:
120
- context: AWS_ECR_MNL
121
- filters:
122
- branches:
123
- only:
124
- - devops
125
- - dev
126
- - master
127
- - push-js-bundles:
128
- requires:
129
- - init
130
- filters:
131
- branches:
132
- only:
133
- - dev
134
- - master
135
- context:
136
- - AWS_ECR_MNL
137
-
138
- - build-and-publish:
139
- context: AWS_ECR_MNL
140
- requires:
141
- - init
142
- filters:
143
- branches:
144
- only:
145
- - dev
146
- - master
147
-
148
- - build-and-publish-npm:
149
- context: AWS_ECR_MNL
150
- requires:
151
- - init
152
- filters:
153
- branches:
154
- only:
155
- - master
156
-
157
- jobs:
158
- init:
159
- executor: aws-cli/default
160
- working_directory: *working-dir
161
- steps:
162
- - checkout
163
- - aws-token-init
164
- - persist-working-dir
165
-
166
- push-js-bundles:
167
- executor: node-lts
168
- steps:
169
- - attach_workspace:
170
- at: *working-dir
171
- - restore-yarn-cache
172
- - install-dependencies
173
- - build
174
- - save-yarn-package-cache
175
- - bundle-js
176
- - aws-s3/sync:
177
- from: ./lib
178
- to: "s3://wasm-runner-sdk"
179
-
180
- build-and-publish:
181
- executor: node-lts
182
- steps:
183
- - attach_workspace:
184
- at: *working-dir
185
- - restore-yarn-cache
186
- - install-dependencies
187
- - build
188
- - save-yarn-package-cache
189
- - publish
190
-
191
- build-and-publish-npm:
192
- executor: node-lts
193
- steps:
194
- - checkout
195
- - npm-config-set
196
- - restore-yarn-cache
197
- - install-dependencies
198
- - build
199
- - save-yarn-package-cache
200
- - publish_npm