From 690f90a43aaae358bcecae07a3de7a65d650cadf Mon Sep 17 00:00:00 2001 From: nobkd <44443899+nobkd@users.noreply.github.com> Date: Fri, 28 Apr 2023 17:50:30 +0200 Subject: [PATCH] ci: use npm ci --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 796629b..8079160 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: cache: 'npm' - name: Install Deps - run: npm i --prefer-offline --no-audit --progress=false + run: npm ci --progress=false - name: Check Formatting run: npm run format diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2d155ef..7b0a174 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,12 +19,12 @@ jobs: cache: 'npm' - name: Install Deps - run: npm i --prefer-offline --no-audit --progress=false + run: npm ci --progress=false - name: Update version run: | - npm version --no-git-tag-version ${${{ github.event.release.tag_name }}:1} - sed -i -e "s/\"version\": *\"[0-9A-z.\-]*\"/\"version\": $(npm pkg get version)/gi" public/manifest.json + npm version --no-git-tag-version ${${{ github.event.release.tag_name }}:1} + sed -i -e "s/\"version\": *\"[0-9A-z.\-]*\"/\"version\": $(npm pkg get version)/gi" public/manifest.json # TODO: push version change to main #- name: Sign Firefox Extension