From 42cd5a56cbe1b62223d1105f0f83c46aff2f2f2c Mon Sep 17 00:00:00 2001 From: David Werth Date: Wed, 20 Nov 2024 20:55:13 +0100 Subject: [PATCH] Github Actions --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/npmpublish.yml | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab4f004..dec985c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,17 +9,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v1 + - uses: actions/cache@v4 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 9f5fd51..d78b7ba 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -12,17 +12,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v1 + - uses: actions/cache@v4 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} @@ -45,7 +45,7 @@ jobs: mv zxing-ngx-scanner-*.tgz ./package.tgz - name: Upload build artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: pack-artifact path: ./package.tgz @@ -56,13 +56,13 @@ jobs: steps: - name: Download build artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: pack-artifact - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 registry-url: https://registry.npmjs.org/ - run: npm publish ./pack-artifact/package.tgz --access public