diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index a73904c..4da461c 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -18,15 +18,14 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04] - # os: [ubuntu-18.04, ubuntu-20.04] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 16 - uses: microsoft/playwright-github-action@v1 - - uses: actions/cache@v1 + - uses: actions/cache@v3 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} @@ -43,9 +42,9 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 16 - uses: microsoft/playwright-github-action@v1 - - uses: actions/cache@v1 + - uses: actions/cache@v3 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} @@ -58,7 +57,7 @@ jobs: tag: name: "Publishing release" if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' - needs: + needs: - test_linux - test_win runs-on: ubuntu-latest @@ -69,9 +68,9 @@ jobs: fetch-depth: 0 - uses: actions/setup-node@v2 with: - node-version: '14.x' + node-version: '16.x' registry-url: 'https://registry.npmjs.org' - - uses: actions/cache@v1 + - uses: actions/cache@v3 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} @@ -98,4 +97,4 @@ jobs: prerelease: false - run: npm publish --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index fc2c039..f896fc2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@api-components/api-resource-example-document", - "version": "4.3.9", + "version": "4.3.10", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9b654ef..fe56f4b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@api-components/api-resource-example-document", "description": "A viewer for examples in a resource based on AMF model", - "version": "4.3.9", + "version": "4.3.10", "license": "Apache-2.0", "main": "index.js", "module": "index.js", diff --git a/src/ApiExampleRender.js b/src/ApiExampleRender.js index 31aa03d..e9e1677 100644 --- a/src/ApiExampleRender.js +++ b/src/ApiExampleRender.js @@ -235,7 +235,7 @@ export class ApiExampleRender extends LitElement { // This just sanitizes the schema and renders unprocessed data. this._codeValue = value; // @ts-ignore - } else if (value || value === false || value === 0) { + } else if (value || value === false || value === 0 || value === '') { let lang; const type = this.mediaType; if (type) {