Skip to content

Workflow file for this run

name: Push
on:
push:
branches:
- master
jobs:
publish:
if: ${{ startsWith(github.event.head_commit.message, '[CI]') == false }}
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Setup
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Config
run: |
git config --local user.email "[email protected]"
git config --local user.name "pretto-bot"
- name: Version
run: npm version minor -m "[CI] graphql-codegen-loader@%s"
- name: Push
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.BOT_TOKEN }}
branch: master
tags: true
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}