diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f1d9efeca..5d9a5f679 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,10 +19,13 @@ jobs: if: success() js: - name: NPM + name: NPM runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: '12.x' - name: Publish env: NPM_EMAIL: ${{ secrets.NPM_EMAIL }} @@ -30,10 +33,11 @@ jobs: NPM_PASS: ${{ secrets.NPM_PASS }} run: | git config --global user.email "${NPM_EMAIL}" + npm install -g npm-cli-login npm-cli-login npm version from-git npm publish --access public . - + docker: name: Docker runs-on: ubuntu-latest @@ -49,4 +53,4 @@ jobs: export tag=$(git tag --points-at HEAD) echo ${DOCKER_PASS} | docker login --username ${DOCKER_USER} --password-stdin docker tag ${DOCKER_REPO}:${tag#v} ${DOCKER_REPO}:latest - docker push ${DOCKER_REPO} \ No newline at end of file + docker push ${DOCKER_REPO}