chore: use es6 imports for deploy-preview-netlify
continuous-integration/drone/pr Build is pending Details

This commit is contained in:
Dominik Pschenitschni 2023-01-17 15:28:07 +01:00
parent e1b35ff023
commit a379832b0b
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
4 changed files with 6 additions and 4 deletions

View File

@ -149,8 +149,10 @@ steps:
# Override the default api url used for preview
- sed -i 's|http://localhost:3456|https://try.vikunja.io|g' dist-preview/index.html
- apk add --no-cache perl-utils
- shasum -a 384 -c ./scripts/deploy-preview-netlify.js.sha384
- node ./scripts/deploy-preview-netlify.js
# create via:
# `shasum -a 384 ./scripts/deploy-preview-netlify.mjs > ./scripts/deploy-preview-netlify.mjs.sha384`
- shasum -a 384 -c ./scripts/deploy-preview-netlify.mjs.sha384
- node ./scripts/deploy-preview-netlify.mjs
depends_on:
- build-prod
when:

View File

@ -1 +0,0 @@
24df869e7a9282c76c9e1883071a39c0b11a53a57da68b37f2b918df25b1ae0f1b403e38a29c9cb694575bb9a7b52b6e ./scripts/deploy-preview-netlify.js

View File

@ -1,4 +1,4 @@
const { exec } = require('child_process')
import { exec } from 'node:child_process'
function createSlug(string) {
return String(string)

View File

@ -0,0 +1 @@
57af69409e66bc87f4f2fc5822dd8d3c2eb47c601f81af1ac4a56f3e2d80837b1a2de06f4ff57695ec379b7c15b881e3 ./scripts/deploy-preview-netlify.mjs