Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
strategy:
matrix:
- node-version: [12.x, 14.x, 16.x]
+ node-version: ['12.x', '14.x', '16.x']
steps:
- name: Checkout
- name: Set node version to 16
uses: actions/setup-node@v2
with:
- node-version: 16
+ node-version: '16.x'
- name: Generate TypeDoc
run: |
- name: Setup Node
uses: actions/setup-node@v2
with:
- node-version: 16
+ node-version: '16.x'
- name: Install
run: npm ci
- name: Setup Node
uses: actions/setup-node@v2
with:
- node-version: 16
+ node-version: '16.x'
registry-url: https://registry.npmjs.org/
- name: Read package.json version
- name: Publish Release
if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
- run: |
- npm login
- npm publish
+ run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
<span> · </span>
<a href="#usage">Usage</a>
<span> · </span>
- <a href="#node-versions"> Node versions</a>
+ <a href="#node-versions">Node versions</a>
<span> · </span>
<a href="#api">API</a>
<span> · </span>