Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
jobs:
build:
- runs-on: ${{ matrix.os }}
-
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
node: ['16.x', '18.x', '20.x']
+ name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
+
+ runs-on: ${{ matrix.os }}
+
steps:
- name: Checkout
uses: actions/checkout@v4
cache: 'pnpm'
- name: Install
- run: pnpm install
+ run: pnpm install --ignore-scripts
- name: Build
run: pnpm build
- name: Generate documentation
run: |
- pnpm install
+ pnpm install --ignore-scripts
pnpm typedoc
- name: Commit files
cache: 'pnpm'
- name: Install
- run: pnpm install
+ run: pnpm install --ignore-scripts
- name: Tests & Coverage
run: |
uses: jaywcjlove/github-action-package@main
- name: Install
- run: pnpm install
+ run: pnpm install --ignore-scripts
- name: Publish Release
if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
do
echo -e "Building $example"
cd $example
- pnpm install
+ pnpm install --ignore-scripts
pnpm build
cd -
done