From 4f4ae1cb3c33228a023ea599c2648268d15e6c0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 6 Jan 2022 17:32:55 +0100 Subject: [PATCH] Try to fix release publishing on registry MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/ci.yml | 2 +- .github/workflows/generate-typedoc.yml | 2 +- .github/workflows/npmpublish.yml | 8 +++----- README.md | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbae7131..eabce8d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/generate-typedoc.yml b/.github/workflows/generate-typedoc.yml index 0966eb27..5fa4498c 100644 --- a/.github/workflows/generate-typedoc.yml +++ b/.github/workflows/generate-typedoc.yml @@ -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: | diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 29b40075..d6bbad9d 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -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 }} diff --git a/README.md b/README.md index 6348511f..b907edf9 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Please consult our general guidelines · Usage · - Node versions + Node versions · API · -- 2.34.1