Skip to content

chore(ci): Set up publish-by-pull-request workflow #126

chore(ci): Set up publish-by-pull-request workflow

chore(ci): Set up publish-by-pull-request workflow #126

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CI: true
jobs:
##########################################################################
# Build
##########################################################################
build:
name: Build [Node.js ${{ matrix.node-version }}]
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: |
corepack enable
yarn install
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test
##########################################################################
# Release precheck
##########################################################################
release_precheck:
name: 'Release (precheck)'
needs: build
if: |
github.ref == 'ref/head/main' &&
github.event_name == 'push' &&
contains(github.event.head_commit.message, 'chore(release)')
uses: ./.github/workflows/release.yml

Check failure on line 59 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. In .github/workflows/ci.yml (Line: 59, Col: 11): Error from called workflow CartoDB/carto-api-client/.github/workflows/release.yml@7464494c306c72f55637199f933f8a4386916cb8 (Line: 15, Col: 9): Unexpected symbol: '"contains'. Located at position 1 within expression: "contains(github.event.head_commit.message, 'chore(release)')" && startsWith(github.ref, 'refs/tags/')