Skip to content

chore(deps): update graphqlcodegenerator monorepo (major) #4166

chore(deps): update graphqlcodegenerator monorepo (major)

chore(deps): update graphqlcodegenerator monorepo (major) #4166

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types: [released, prereleased]
jobs:
test:
name: Testing on ${{matrix.os}} and Node ${{matrix.node_version}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node_version: [12, 14, 16]
steps:
- name: Checkout Master
uses: actions/checkout@v2
- name: Use Node ${{matrix.node_version}}
uses: actions/setup-node@master
with:
version: ${{ matrix.node_version }}
- name: Install Dependencies using Yarn
run: yarn --ignore-engines
- name: Build
run: yarn build
- name: Test
run: yarn test
publish-canary:
name: Publish Canary
runs-on: ubuntu-latest
if: ${{ github.event_name != 'release' }}
steps:
- name: Checkout Master
uses: actions/checkout@v2
- name: Use Node
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install Dependencies using Yarn
run: yarn --ignore-engines
- name: Build
run: yarn build
- name: Release Canary
run: |
echo "Fork PR: ${{github.repository}}"
if [ "${{github.repository}}" == "Urigo/graphql-cli" ] && [ "${{ secrets.NODE_AUTH_TOKEN }}" != "" ]
then
echo "//registry.npmjs.org/:_authToken=${{ secrets.NODE_AUTH_TOKEN }}" > .npmrc
npm run release:canary
else
echo "Skipping canary publish due to a fork/PR..."
fi
publish:
# publish to npm only when doing the release
if: ${{ github.event_name == 'release' }}
name: Publish Release
runs-on: ubuntu-latest
steps:
- name: Checkout Master
uses: actions/checkout@v2
- name: Use Node
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install Dependencies using Yarn
run: yarn --ignore-engines
- name: Build
run: yarn build
- name: Release
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NODE_AUTH_TOKEN}}" > ~/.npmrc && TAG=${GITHUB_REF#"refs/tags/"} npm run release