diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 794c40bc2a..dfa9ba9940 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -36,5 +36,6 @@ jobs: CI: true NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION }} run: | + sed '/\/dist\//d' -i .gitignore npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN npm publish --tag nightly diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3b89546c5..b8f6b14aa1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,7 @@ jobs: CI: true NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION }} run: | + sed '/\/dist\//d' -i .gitignore npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN yarn config set registry https://registry.npmjs.org yarn publish --non-interactive