diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1c3e008deb8a943f0c1cd61211b1ceb6ebeb472b..ecaa9b9c06d2990e46f19f148372040e729dfd46 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -265,6 +265,7 @@ jobs:
         uses: actions/setup-node@v1
         with:
           node-version: ${{ env.NODE_VERSION }}
+          registry-url: 'https://registry.npmjs.org'
 
       - name: Init platform
         id: init
@@ -318,9 +319,7 @@ jobs:
 
       - name: semantic-release
         run: |
-          echo '//registry.yarnpkg.com/:_authToken=${NPM_TOKEN}' > ~/.npmrc
-          echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc
-          yarn semantic-release --dry-run ${{github.ref != 'refs/heads/master'}}
+          npx semantic-release --dry-run ${{github.ref != 'refs/heads/master'}}
         env:
           GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
-          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}