Skip to content

Commit

Permalink
fix: support how renovatebot generate lockfiles (#47)
Browse files Browse the repository at this point in the history
Co-authored-by: Cody Olsen <[email protected]>
  • Loading branch information
stipsan and stipsan authored Nov 15, 2022
1 parent 71ea801 commit 160e64b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
with:
cache: npm
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm i
- run: npm test

release:
Expand Down
2 changes: 1 addition & 1 deletion assets/inject/semver-workflow/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
with:
cache: npm
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm i
- run: npm test --if-present

release:
Expand Down
13 changes: 6 additions & 7 deletions docs/semver-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ semantic-release driven workflow on Github for Sanity v3 plugins.

### 1. Install new dependencies

Run
Run

```bash
npm install
```
Expand All @@ -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
Expand Down Expand Up @@ -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



0 comments on commit 160e64b

Please sign in to comment.