From ea28f711b407c5396bc7140916dabce790ed8923 Mon Sep 17 00:00:00 2001 From: Jakub Kolebaba Date: Sat, 13 Nov 2021 20:39:31 +0100 Subject: [PATCH] Updated publish.yml --- .github/workflows/publish.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 54beb0a..57709c3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,24 +12,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Prepare repository - run: git checkout master - - run: git status + - uses: actions/setup-node@v2 + with: + node-version: 14 + registry-url: https://registry.npmjs.org/ - run: yarn - run: yarn build - name: bump version run: | yarn version --no-git-tag-version --new-version ${{ github.event.release.tag_name }} - - name: push new version - run: | - git config --global user.name 'Jakub Kolebaba' - git config --global user.email 'jakub@kolebaba.cz' - git commit -am ${{ github.event.release.tag_name }} - git push - - uses: actions/setup-node@v2 - with: - node-version: 14 - registry-url: https://registry.npmjs.org/ - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}