Skip to content

Commit af99bbe

Browse files
committed
Fixup spec deploy workflow
This is cargo-culted from proposal-upsert.
1 parent 896863e commit af99bbe

File tree

3 files changed

+12
-30
lines changed

3 files changed

+12
-30
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@ on:
44
push:
55
branches:
66
- main
7+
permissions:
8+
contents: write
79

810
jobs:
911
deploy:
1012
runs-on: ubuntu-latest
1113

1214
steps:
13-
- uses: actions/checkout@v3
14-
- uses: ljharb/actions/node/install@main
15-
name: 'nvm install lts/* && npm install'
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
1617
with:
17-
node-version: lts/*
18-
- run: npm run build
19-
- uses: JamesIves/[email protected]
18+
node-version: 20
19+
- run: >
20+
npm ci --no-audit && npm run build
21+
- uses: JamesIves/[email protected]
2022
with:
2123
branch: gh-pages
22-
folder: build
24+
folder: dist
2325
clean: true

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
"private": true,
3-
"name": "template-for-proposals",
4-
"description": "A repository template for ECMAScript proposals.",
3+
"name": "proposal-error-capturestacktrace",
4+
"description": "ECMAScript Proposal, specs, and reference implementation for Error.captureStackTrace",
55
"scripts": {
6-
"start": "npm run build-loose -- --watch",
7-
"build": "npm run build-loose -- --strict",
8-
"build-loose": "node -e 'fs.mkdirSync(\"build\", { recursive: true })' && ecmarkup --load-biblio @tc39/ecma262-biblio --verbose spec.emu build/index.html --lint-spec"
6+
"build": "ecmarkup --load-biblio @tc39/ecma262-biblio --verbose spec.emu --assets-dir dist dist/index.html --lint-spec"
97
},
108
"homepage": "https://github.com/tc39/template-for-proposals#readme",
119
"repository": {
@@ -16,8 +14,5 @@
1614
"devDependencies": {
1715
"@tc39/ecma262-biblio": "^2.1.2775",
1816
"ecmarkup": "^20.0.0"
19-
},
20-
"engines": {
21-
"node": ">= 12"
2217
}
2318
}

0 commit comments

Comments
 (0)