Skip to content

ci: provide npm publish from PR pipeline #125

ci: provide npm publish from PR pipeline

ci: provide npm publish from PR pipeline #125

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn workspace esbuild-node-externals build
- name: Test unit
run: yarn workspace esbuild-node-externals test
- name: Test integration esbuild@default
run: yarn workspace example-basic build
- name: Test integration [email protected] (minimal)
run: |
yarn workspace example-basic add [email protected]
yarn workspace example-basic build