Skip to content

Commit 8117e66

Browse files
committed
Removed builtin modules, changed workflow
1 parent 0665366 commit 8117e66

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
13+
id-token: write
14+
attestations: write
15+
1316
steps:
14-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1518

1619
- name: Use Node.js
17-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
1821
with:
1922
node-version: "18.x"
2023

@@ -23,6 +26,14 @@ jobs:
2326
npm install
2427
npm run build
2528
29+
- name: Generate artifact attestations
30+
uses: actions/attest@v4
31+
with:
32+
subject-path: |
33+
main.js
34+
manifest.json
35+
styles.css
36+
2637
- name: Create release
2738
env:
2839
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

esbuild.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import esbuild from "esbuild";
22
import process from "process";
3-
import builtins from "builtin-modules";
43

54
const banner =
65
`/*
@@ -31,7 +30,7 @@ const context = await esbuild.context({
3130
"@lezer/common",
3231
"@lezer/highlight",
3332
"@lezer/lr",
34-
...builtins],
33+
],
3534
format: "cjs",
3635
target: "es2018",
3736
logLevel: "info",

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"@types/turndown": "^5.0.5",
1818
"@typescript-eslint/eslint-plugin": "5.29.0",
1919
"@typescript-eslint/parser": "5.29.0",
20-
"builtin-modules": "3.3.0",
2120
"esbuild": "0.25.0",
2221
"obsidian": "latest",
2322
"tslib": "2.4.0",

0 commit comments

Comments
 (0)