Skip to content

chore: default to private npm publishing and unify publish scripts #938

chore: default to private npm publishing and unify publish scripts

chore: default to private npm publishing and unify publish scripts #938

# Copyright 2026 Google LLC

Check failure on line 1 in .github/workflows/web_build_and_test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/web_build_and_test.yml

Invalid workflow file

(Line: 52, Col: 5): Required property is missing: runs-on
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Web core
on:
push:
branches: [ main ]
paths:
- 'renderers/web_core/**/*'
- '.github/workflows/web_build_and_test.yml'
pull_request:
paths:
- 'renderers/web_core/**/*'
- '.github/workflows/web_build_and_test.yml'
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
- name: Install web_core dependencies
working-directory: ./renderers/web_core
run: npm i
- name: Build web_core
working-directory: ./renderers/web_core
run: npm run build
- name: Test web_core
working-directory: ./renderers/web_core
run: npm run test
lint:
steps:
- uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
- name: Install web_core dependencies
working-directory: ./renderers/web_core
run: npm i
- name: Build web_core
working-directory: ./renderers/web_core
run: npm run build
- name: Lint web_core
working-directory: ./renderers/web_core
run: npm run lint