Skip to content

Merge pull request #124 from etn-ccis/dev #51

Merge pull request #124 from etn-ccis/dev

Merge pull request #124 from etn-ccis/dev #51

Workflow file for this run

name: Build
on:
push:
branches: ["dev", "master"]
pull_request:
branches: ["dev", "master"]
pull_request_target:
types:
- opened
branches:
- "*/*"
permissions:
pull-requests: write
contents: read
jobs:
verify_artifacts:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- run: yarn test
working-directory: eslint-config
- run: yarn test
working-directory: prettier-config
publish_prettier_config:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev') }}
needs: verify_artifacts
strategy:
matrix:
node-version: [20.x]
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
BRANCH: ${{ github.ref == 'refs/heads/master' && 'master' || 'dev' }}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- run: yarn --immutable
working-directory: prettier-config
- run: npm run publish:package -- -b ${{env.BRANCH}}
working-directory: prettier-config
publish_eslint_config:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev') }}
needs: verify_artifacts
strategy:
matrix:
node-version: [20.x]
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
BRANCH: ${{ github.ref == 'refs/heads/master' && 'master' || 'dev' }}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- run: yarn --immutable
working-directory: eslint-config
- run: npm run publish:package -- -b ${{env.BRANCH}}
working-directory: eslint-config