Skip to content

Commit

Permalink
changed folder location and reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Panduss committed Feb 8, 2023
1 parent 66a3297 commit c8a07f4
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
18 changes: 9 additions & 9 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116180,14 +116180,14 @@ async function generatePdf() {
shortVersion: await getVersion('short'),
releaseDate: await getCurrentDate(),
previousFiles: mapped,
manufacturer: readFileSync('assets/manufacturer.png').toString('base64'),
dateManufacturer: readFileSync('assets/dateManufacturer.png').toString('base64'),
ref: readFileSync('assets/ref.png').toString('base64'),
lot: readFileSync('assets/lot.png').toString('base64'),
udi: readFileSync('assets/udi.png').toString('base64'),
ukca: readFileSync('assets/ukca.png').toString('base64'),
caution: readFileSync('assets/caution.png').toString('base64'),
eifu: readFileSync('assets/eifu.png').toString('base64')
manufacturer: readFileSync('../assets/manufacturer.png').toString('base64'),
dateManufacturer: readFileSync('../assets/dateManufacturer.png').toString('base64'),
ref: readFileSync('../assets/ref.png').toString('base64'),
lot: readFileSync('../assets/lot.png').toString('base64'),
udi: readFileSync('../assets/udi.png').toString('base64'),
ukca: readFileSync('../assets/ukca.png').toString('base64'),
caution: readFileSync('../assets/caution.png').toString('base64'),
eifu: readFileSync('../assets/eifu.png').toString('base64')
});

/**
Expand All @@ -116197,7 +116197,7 @@ async function generatePdf() {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setContent(html, {waitUntil: ['load', 'domcontentloaded', 'networkidle0']})
await page.addStyleTag({path: './styles/pdf.css'});
await page.addStyleTag({path: '../styles/pdf.css'});
const pdf = await page.pdf({
format: 'A4',
printBackground: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "publish-pdf-version-action",
"main": "src/index.js",
"scripts": {
"build": "ncc build src/index.js"
"build": "ncc build src/"
},
"repository": {
"type": "git",
Expand Down
18 changes: 9 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ async function generatePdf() {
shortVersion: await getVersion('short'),
releaseDate: await getCurrentDate(),
previousFiles: mapped,
manufacturer: readFileSync('assets/manufacturer.png').toString('base64'),
dateManufacturer: readFileSync('assets/dateManufacturer.png').toString('base64'),
ref: readFileSync('assets/ref.png').toString('base64'),
lot: readFileSync('assets/lot.png').toString('base64'),
udi: readFileSync('assets/udi.png').toString('base64'),
ukca: readFileSync('assets/ukca.png').toString('base64'),
caution: readFileSync('assets/caution.png').toString('base64'),
eifu: readFileSync('assets/eifu.png').toString('base64')
manufacturer: readFileSync('../assets/manufacturer.png').toString('base64'),
dateManufacturer: readFileSync('../assets/dateManufacturer.png').toString('base64'),
ref: readFileSync('../assets/ref.png').toString('base64'),
lot: readFileSync('../assets/lot.png').toString('base64'),
udi: readFileSync('../assets/udi.png').toString('base64'),
ukca: readFileSync('../assets/ukca.png').toString('base64'),
caution: readFileSync('../assets/caution.png').toString('base64'),
eifu: readFileSync('../assets/eifu.png').toString('base64')
});

/**
Expand All @@ -175,7 +175,7 @@ async function generatePdf() {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setContent(html, {waitUntil: ['load', 'domcontentloaded', 'networkidle0']})
await page.addStyleTag({path: './styles/pdf.css'});
await page.addStyleTag({path: '../styles/pdf.css'});
const pdf = await page.pdf({
format: 'A4',
printBackground: true,
Expand Down
File renamed without changes.

0 comments on commit c8a07f4

Please sign in to comment.