From 2510e642cf62dd27b909a33215ace45c7c7cb722 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 9 Aug 2023 00:46:02 +0300 Subject: [PATCH] action: attempt to fix NPM publishing (#349) --- .github/workflows/ci.yml | 6 ++++-- .github/workflows/publish.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b6ba2ec..85b8a42e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -195,7 +195,9 @@ jobs: run: npm run build:release - name: Upload npm folder - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-artifact@v3 with: name: npmDist - path: ./ + path: | + ./ + !./node_modules diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1c74e848..b169df10 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,7 +14,7 @@ jobs: npm-publish: environment: name: npm-publish - url: https://www.npmjs.com/package/graphql-voyager/v/${GITHUB_REF/refs\/tags\//} + url: https://www.npmjs.com/package/graphql-voyager/v/${{github.ref_name}} needs: ci permissions: contents: read # for actions/checkout