From e40163bf18591b9d13fecf8ff061123867167e94 Mon Sep 17 00:00:00 2001 From: Andrew Kaiser Date: Tue, 20 Oct 2020 21:37:42 -0400 Subject: [PATCH] chore: releases bump package.json version --- .github/workflows/npm-publish.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index bf8ca85..e5ccd21 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -13,7 +13,15 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} + GITHUB_TOKEN: ${{ secrets.github_token }} + TAG: ${{ github.ref }} + - run: npm version --no-git-tag-version $TAG + - run: npm publish + - run: git fetch origin master + - run: git checkout master + - run: git add package.json + - run: git commit --messsage "release $TAG" + - run: git remote add deploy https://${GITHUB_TOKEN}@github.com/${{ github.repository }}.git + - run: git push deploy master