From 243918818aa10df5e83882ccec2b14e2399b2673 Mon Sep 17 00:00:00 2001 From: folex <0xdxdy@gmail.com> Date: Tue, 29 Dec 2020 12:39:48 +0300 Subject: [PATCH] npm publish --- .github/workflows/publish_release.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 75fec05..de3eebc 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -36,13 +36,16 @@ jobs: - name: Set version to ${{ env.FINAL_VERSION }} run: yarn version --new-version ${{ env.FINAL_VERSION }} --no-git-tag-version - ### Publish to NPM - - uses: JS-DevTools/npm-publish@v1 + ### Publish to NPM registry + - uses: actions/setup-node@v1 with: - package: package.json - access: public - check-version: false - token: ${{ secrets.NPM_TOKEN }} + node-version: '14' + registry-url: 'https://registry.npmjs.org' + + - run: npm publish --access public + working-directory: pkg + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} ### Create a pre-release - name: Create Release