build(ci): cleanup workflows
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 6 Sep 2023 00:21:56 +0000 (02:21 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 6 Sep 2023 00:21:56 +0000 (02:21 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/ci.yml
.github/workflows/generate-documentation.yml
.github/workflows/npmpublish.yml
examples/typescript/build.sh

index 30b45b14f2953688fe490262c8a754b5d43387e8..1232df97a6d36f48780a333aae96090886798a10 100644 (file)
@@ -15,13 +15,15 @@ on:
 
 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
@@ -40,7 +42,7 @@ jobs:
           cache: 'pnpm'
 
       - name: Install
-        run: pnpm install
+        run: pnpm install --ignore-scripts
 
       - name: Build
         run: pnpm build
index d88be39f3581f35bedbae87e0a27250283f994d4..fcf24a47cfed428fbe8c38ed8b2efe139520dfa4 100644 (file)
@@ -24,7 +24,7 @@ jobs:
 
       - name: Generate documentation
         run: |
-          pnpm install
+          pnpm install --ignore-scripts
           pnpm typedoc
 
       - name: Commit files
index 05615ca0620737d71649a863a76ed74d00fc4967..2782b5b94a17991c42d9292421b2f83b314decad 100644 (file)
@@ -24,7 +24,7 @@ jobs:
           cache: 'pnpm'
 
       - name: Install
-        run: pnpm install
+        run: pnpm install --ignore-scripts
 
       - name: Tests & Coverage
         run: |
@@ -62,7 +62,7 @@ jobs:
         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 }}
index 1e8ef870d6facb37af892e363505ebe11f6d9379..2ebc5df089c77df3e185d58e72e289b323f0c809 100755 (executable)
@@ -8,7 +8,7 @@ for example in $examples
 do
   echo -e "Building $example"
   cd $example
-  pnpm install
+  pnpm install --ignore-scripts
   pnpm build
   cd -
 done