Try to fix release publishing on registry v2.2.0
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 6 Jan 2022 16:32:55 +0000 (17:32 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 6 Jan 2022 16:32:55 +0000 (17:32 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml
.github/workflows/generate-typedoc.yml
.github/workflows/npmpublish.yml
README.md

index bbae7131d3ef8da4a0553f36d4a8c88b6d39f25f..eabce8d0c58f564749ebe3642b27f80ddf8931c7 100644 (file)
@@ -18,7 +18,7 @@ jobs:
 
     strategy:
       matrix:
-        node-version: [12.x, 14.x, 16.x]
+        node-version: ['12.x', '14.x', '16.x']
 
     steps:
       - name: Checkout
index 0966eb272352195d7b3761f52bb46a8d57abed3a..5fa4498c4e1fc4421afb7e14c949b07bfd6764c7 100644 (file)
@@ -17,7 +17,7 @@ jobs:
       - name: Set node version to 16
         uses: actions/setup-node@v2
         with:
-          node-version: 16
+          node-version: '16.x'
 
       - name: Generate TypeDoc
         run: |
index 29b40075239ed0a10edb80efd84437cc4e87ea11..d6bbad9d78b5b79e3a374786b25d9ffe0f7e0577 100644 (file)
@@ -15,7 +15,7 @@ jobs:
       - name: Setup Node
         uses: actions/setup-node@v2
         with:
-          node-version: 16
+          node-version: '16.x'
 
       - name: Install
         run: npm ci
@@ -44,7 +44,7 @@ jobs:
       - 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
@@ -56,9 +56,7 @@ jobs:
 
       - 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 }}
 
index 6348511f2d830f9b831d0c2c524f8f77375c4036..b907edf9bed8e0d0b89c8fe8524babcad1441b11 100644 (file)
--- a/README.md
+++ b/README.md
@@ -65,7 +65,7 @@ Please consult our <a href="#general-guidance">general guidelines</a>
   <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>