Skip to content

Commit

Permalink
Add publish ci (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakovmeister authored Aug 6, 2023
1 parent ee20e6b commit 741379d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: NPM publish

on:
release:
types: [released]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: |
sudo apt-get update
sudo apt-get install -y graphicsmagick ghostscript
- run: npm install
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pdf2pic",
"version": "2.2.1",
"version": "2.2.4",
"description": "A utility for converting pdf to image and base64 format.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 741379d

Please sign in to comment.