Skip to content

Commit f358103

Browse files
authored
remove env read in build command, install zig for github actions container (#15)
1 parent 8efc548 commit f358103

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919
# Setup .npmrc file to publish to npm
20+
- uses: mlugg/setup-zig@v2
2021
- uses: actions/setup-node@v4
2122
with:
22-
node-version: "20.x" # [semantic-release]: node version >=20.8.1 is required
23-
registry-url: "https://registry.npmjs.org"
23+
node-version: '20.x' # [semantic-release]: node version >=20.8.1 is required
24+
registry-url: 'https://registry.npmjs.org'
2425
- run: npm ci
2526
- run: npm run build
2627
- run: npm audit --omit=dev

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"start": "export NODE_ENV=development && webpack serve --mode development",
24-
"build": "rm -rf lib lib-test && export $(grep -v '^#' .env | xargs) && export NODE_ENV=production && webpack && tsc --project tsconfig.build.json --emitDeclarationOnly ",
24+
"build": "rm -rf lib lib-test && export NODE_ENV=production && webpack && tsc --project tsconfig.build.json --emitDeclarationOnly ",
2525
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
2626
"test-e2e": "npx playwright test",
2727
"format": "eslint --fix \"src/**/*.{ts,js}\" \"integration-tests/**/*.{ts,js}\""

0 commit comments

Comments
 (0)