Skip to content

Commit

Permalink
fix: runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed Sep 26, 2023
1 parent 1dea734 commit e5d1b8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
fetch-depth: 0
- name: Install bun
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
Expand Down
10 changes: 5 additions & 5 deletions scripts/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,17 @@ const basicFiles = [
with:
node-version: "lts/*"`,
` - name: Install bun
uses: oven-sh/setup-bun@v1`
uses: oven-sh/setup-bun@v1`
)
} else if (oldRuntime.npm === "bun" && newRuntime.npm === "npm") {
content = content.replaceAll(`${oldRuntime.npm} install --frozen-lockfile`, `${newRuntime.npm} ci`)
content = content.replaceAll(
` - name: Install bun
uses: oven-sh/setup-bun@v1`,
uses: oven-sh/setup-bun@v1`,
` - name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"`
uses: actions/setup-node@v3
with:
node-version: "lts/*"`
)
}
return content.replaceAll(`${oldRuntime.npx} `, `${newRuntime.npx} `)
Expand Down

0 comments on commit e5d1b8d

Please sign in to comment.