Skip to content

Update build.yaml, add execution for pull requests #2

Update build.yaml, add execution for pull requests

Update build.yaml, add execution for pull requests #2

Workflow file for this run

name: Build and Install
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://npm.pkg.github.com'
- name: Create temporary .npmrc for GitHub Actions
run: |
echo "@bldrs-ai:registry=https://npm.pkg.github.com" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Install dependencies
run: yarn install
- name: Build the project
run: yarn build