Skip to content

ci: run on pull_request #872

ci: run on pull_request

ci: run on pull_request #872

Workflow file for this run

name: CI
on:
push:
branches:
- main
- release*
pull_request: { }
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.BACKPORT_ACTION_PAT }}
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npm run format-check
- name: Build
run: npm run build --if-present
- name: Package artifacts
run: npm run package
- name: Run Tests
run: npm run test-verbose
env:
CI: true
- name: Publish artifacts
if: >
github.event_name == 'push' && (
github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/heads/release')
)
uses: EndBug/add-and-commit@v9
with:
commit: --signoff
default_author: user_info
fetch: false
message: 'dist: build new artifacts'
push: true