From 160e64bba42fc0b61c5a1b6dd9de5072eeeeb719 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Tue, 15 Nov 2022 15:43:14 +0100 Subject: [PATCH] fix: support how renovatebot generate lockfiles (#47) Co-authored-by: Cody Olsen <81981+stipsan@users.noreply.github.com> --- .github/workflows/main.yml | 2 +- .../semver-workflow/.github/workflows/main.yml | 2 +- docs/semver-workflow.md | 13 ++++++------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 524fe481..6b7d7bff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -87,7 +87,7 @@ jobs: with: cache: npm node-version: ${{ matrix.node }} - - run: npm ci + - run: npm i - run: npm test release: diff --git a/assets/inject/semver-workflow/.github/workflows/main.yml b/assets/inject/semver-workflow/.github/workflows/main.yml index 7c5b3e8b..b6300282 100644 --- a/assets/inject/semver-workflow/.github/workflows/main.yml +++ b/assets/inject/semver-workflow/.github/workflows/main.yml @@ -96,7 +96,7 @@ jobs: with: cache: npm node-version: ${{ matrix.node }} - - run: npm ci + - run: npm i - run: npm test --if-present release: diff --git a/docs/semver-workflow.md b/docs/semver-workflow.md index 291271ca..c7069ec9 100644 --- a/docs/semver-workflow.md +++ b/docs/semver-workflow.md @@ -7,7 +7,8 @@ semantic-release driven workflow on Github for Sanity v3 plugins. ### 1. Install new dependencies -Run +Run + ```bash npm install ``` @@ -33,13 +34,14 @@ on: branches: [main, v3] ``` -### 4. Check secrets +### 4. Check secrets + Ensure that your repo or Github org has set the secrets used by the workflow. `secrets.GITHUB_TOKEN` should always be available by default, but -`secrets.NPM_PUBLISH_TOKEN` is not. +`secrets.NPM_PUBLISH_TOKEN` is not. -Secrets can be set using `Settings -> Secrets -> Actions -> "New reposiotry secret"` +Secrets can be set using `Settings -> Secrets -> Actions -> "New repository secret"` on Github for a repository. ### 5. Update .releaserc.json @@ -88,6 +90,3 @@ semantic-release driven workflow on Github. - Adds husky and related files and dependencies to do pre-commit checks - Adds semantic-release and preset dependencies to automate npm & Github releases - Updates README.md with some standard texts - - -