Skip to content

create codeowners file #460

create codeowners file

create codeowners file #460

Workflow file for this run

on:
pull_request:
push:
branches:
- '**'
env:
GITHUB_SERVICE_USER: "rajsite"
GITHUB_SERVICE_EMAIL: "[email protected]"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
# Required for beachball changelog detection
fetch-depth: 0
# Must checkout with a token that can push to protected branches for beachball
# Cannot rely on GITHUB_TOKEN with workflow contents permission
# See: https://github.com/orgs/community/discussions/40971
token: ${{ secrets.GITHUBPAGESDEPLOYTOKEN }}
# Install dependencies
- uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- run: npm ci
# Build
- run: npm run pack
- uses: actions/upload-artifact@v3
with:
name: packages
path: packages/**/*.tgz
if-no-files-found: error
# Test
- run: npm test
- run: npm run print-available-rules
- run: npm run print-evaluated-rules
# Lint
- run: npm run lint
# Check Changelog
- if: github.repository_owner == 'ni'
run: npm run check
# Publish updates
- name: Set Git User
if: github.repository_owner == 'ni' && startsWith(github.ref, 'refs/heads/main')
run: |
git config --global user.name "${{ env.GITHUB_SERVICE_USER }}"
git config --global user.email "${{ env.GITHUB_SERVICE_EMAIL }}"
- if: github.repository_owner == 'ni' && startsWith(github.ref, 'refs/heads/main')
env:
NPM_SECRET_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run publish:ci -- -n $NPM_SECRET_TOKEN