From 3c4a8aa5da5714796da78b7422c3ff5c0401529a Mon Sep 17 00:00:00 2001 From: Simon Hofmann Date: Tue, 17 Oct 2023 22:51:03 +0200 Subject: [PATCH] (nut-tree/plugin-ocr#25) Updated workflow definitions --- .github/workflows/ci.yaml | 13 +++++++------ .github/workflows/snapshot_release.yaml | 15 ++++++++------- .github/workflows/tagged_release.yaml | 14 +++++++------- 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8d37135..89565b7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,6 +7,7 @@ on: # paths-ignore: # - '**/*.md' pull_request: + workflow_dispatch: jobs: sonar: @@ -14,11 +15,11 @@ jobs: if: "!contains(github.event.head_commit.message, 'skip ci')" steps: - name: Set up Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Setup Docker run: | docker pull s1hofmann/nut-ci:latest @@ -57,13 +58,13 @@ jobs: strategy: matrix: os: [windows-latest, macos-latest] - node: [16] + node: [18] runs-on: ${{matrix.os}} steps: - name: Set up Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{matrix.node}} - name: Setup Docker diff --git a/.github/workflows/snapshot_release.yaml b/.github/workflows/snapshot_release.yaml index a8ccbd5..0ed0de1 100644 --- a/.github/workflows/snapshot_release.yaml +++ b/.github/workflows/snapshot_release.yaml @@ -8,19 +8,20 @@ on: repository_dispatch: types: - snapshot-release + workflow_dispatch: jobs: test: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node: [16] + node: [18] runs-on: ${{matrix.os}} steps: - name: Set up Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{matrix.node}} - name: Setup Docker @@ -54,11 +55,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 registry-url: "https://registry.npmjs.org" - name: Install run: npm ci @@ -70,7 +71,7 @@ jobs: run: npm run publish-next env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: registry-url: "https://npm.pkg.github.com" - name: Publish snapshot release to GPR diff --git a/.github/workflows/tagged_release.yaml b/.github/workflows/tagged_release.yaml index df8126b..66cc374 100644 --- a/.github/workflows/tagged_release.yaml +++ b/.github/workflows/tagged_release.yaml @@ -9,13 +9,13 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node: [16] + node: [18] runs-on: ${{matrix.os}} steps: - name: Set up Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{matrix.node}} - name: Setup Docker @@ -47,11 +47,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 registry-url: "https://registry.npmjs.org" - name: Install run: npm ci @@ -67,7 +67,7 @@ jobs: run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: registry-url: "https://npm.pkg.github.com" - name: Publish tagged release to GPR