Skip to content

Commit

Permalink
chore(ci): bump edge version acording to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 16, 2022
1 parent b85e31e commit 8b7740e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
3 changes: 0 additions & 3 deletions changelog.config.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"@types/serve-static": "^1.15.0",
"@vitest/coverage-c8": "^0.24.3",
"c8": "^7.12.0",
"changelogen": "^0.3.2",
"changelogen": "^0.3.5",
"edge-runtime": "1.1.0-beta.31",
"eslint": "^8.25.0",
"execa": "^6.1.0",
Expand Down
9 changes: 5 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions scripts/bump-edge.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { promises as fsp } from 'fs'
import { execSync } from 'child_process'
import { execaCommand } from 'execa'
import { resolve } from 'pathe'
import { globby } from 'globby'

Expand Down Expand Up @@ -90,9 +90,11 @@ async function loadWorkspace (dir: string) {
}

async function main () {
await execaCommand('changelogen --bump', { stdio: 'inherit' })

const workspace = await loadWorkspace(process.cwd())

const commit = execSync('git rev-parse --short HEAD').toString('utf-8').trim()
const commit = await execaCommand('git rev-parse --short HEAD').then(r => r.stdout.trim())
const date = Math.round(Date.now() / (1000 * 60))

for (const pkg of workspace.packages.filter(p => !p.data.private)) {
Expand Down

0 comments on commit 8b7740e

Please sign in to comment.