diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8a98d67..fb597cbc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -92,8 +92,8 @@ jobs: fail_ci_if_error: true # optional (default = false) verbose: true # optional (default = false) - publish-npm: - if: github.ref == 'refs/heads/master' && github.actor == 'vikelabs-bot' + bump-npm-version: + if: github.ref == 'refs/heads/master' && github.actor != 'vikelabs-bot' needs: [ lint, build, test ] environment: deployment runs-on: ubuntu-latest @@ -108,6 +108,20 @@ jobs: git config --global user.name 'vikelabs-bot' git config --global user.email 'vikelabs-bot-github@vikelabs.ca' + - name: Bump minor version + uses: 'phips28/gh-action-bump-version@master' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + publish-npm: + if: github.ref == 'refs/heads/master' && github.actor == 'vikelabs-bot' + needs: [ lint, build, test ] + environment: deployment + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Node.js uses: actions/setup-node@v1 with: @@ -124,11 +138,6 @@ jobs: - name: Install dependencies run: npm ci --ignore-scripts --no-audit --no-progress - - name: Bump minor version - uses: 'phips28/gh-action-bump-version@master' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Create .npmrc for auth token publishing run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc env: