Skip to content

Commit

Permalink
Merge pull request #4 from h1dd3nsn1p3r/development
Browse files Browse the repository at this point in the history
Added: workflow for npm.
  • Loading branch information
h1dd3nsn1p3r authored Jan 3, 2024
2 parents 8996c94 + 9c1311e commit 7a2ca99
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy updates to npm
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- run: npm test
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
examples
src
.github
.gitignore
global.d.ts
pnpm-lock.yaml
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ The payload is the data that you want to show on the invoice. It is an object wi
```js
const payload = {
company: {
logo: "<svg>...</svg>", // Optional. SVG logo of your company.
name: "Festrol Corp.",
address: "1711 W. El Segundo Blvd, Hawthorne, Canada - 90250",
phone: "Tel: (+11) 245 543 903",
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelogs

## 1.0.2 - 03 January 2024

- Added: Github workflow for npm package publish.
- Updated: Readme with GitHub links.

## 1.0.1 - 03 January 2024

- Updated: Readme with npm package link.
Expand Down
Binary file modified examples/invoice.pdf
Binary file not shown.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@h1dd3nsn1p3r/pdf-invoice",
"version": "1.0.1",
"author": "h1dd3nSn1p3r",
"version": "1.0.2",
"author": "h1dd3nsn1p3r",
"description": "Simple yet powerful node JS library that generates PDF invoice on the fly.",
"license": "MIT",
"main": "./build/index.js",
Expand All @@ -11,6 +11,11 @@
"dev": "tsup ./src --watch",
"build": "tsup ./src"
},
"repository": {
"type": "git",
"url": "git@github.com:h1dd3nsn1p3r/pdf-invoice.git"
},
"homepage": "https://h1dd3nsn1p3r/pdf-invoice",
"keywords": [
"pdf",
"invoice",
Expand Down

0 comments on commit 7a2ca99

Please sign in to comment.