Skip to content

Commit 172f3a2

Browse files
authored
ci: fix marketplace-publish workflow (#281)
1 parent 68c9214 commit 172f3a2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/marketplace-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ jobs:
8383
run: wasm-pack build rs --target=nodejs --out-dir ../src/wasm
8484

8585
- name: Build node
86+
env:
87+
CLIENTID: ${{ secrets.OAUTHCLIENTID }}
88+
CLIENTSECRET: ${{ secrets.OAUTHCLIENTSECRET }}
8689
run: |
87-
npm run package -- --env CLIENTID="${{ secrets.OAUTHCLIENTID }}" --env CLIENTSECRET="${{ secrets.OAUTHCLIENTSECRET }}"
90+
npm run package
8891
8992
- name: Version
9093
id: version

build.mjs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import esbuild from 'esbuild'
22
import copyPluginPkg from '@sprout2000/esbuild-copy-plugin'
33
import { lessLoader } from 'esbuild-plugin-less'
44
import * as process from 'node:process'
5+
import * as console from 'node:console'
56

67
const { copyPlugin } = copyPluginPkg
78
const isProduction = !process.argv.includes('--development')
@@ -79,10 +80,7 @@ async function buildUI(...apps) {
7980
}
8081
}
8182

82-
try {
83-
await Promise.allSettled([buildExtension(), buildUI('ing', 'post-cfg')])
84-
} catch (ex) {
85-
// eslint-disable-next-line no-undef
83+
await Promise.all([buildExtension(), buildUI('ing', 'post-cfg')]).catch(ex => {
8684
console.error(ex)
8785
process.exit(1)
88-
}
86+
})

0 commit comments

Comments
 (0)