diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7c1b20f..258619e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,6 +23,9 @@ jobs: - name: Build run: yarn build + - name: Post Build + run : yarn ci-postbuild + - id: publish uses: JS-DevTools/npm-publish@v1 with: diff --git a/package.json b/package.json index 42f6644..e56dfac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "compress-pdf", - "version": "0.3.2", + "version": "0.3.2-beta.12", "templateVersion": "1.3.0", "description": "An compress pdf library using ghostscript", "main": "dist/index.js", @@ -21,6 +21,7 @@ "type-check": "tsc --pretty --noEmit --skipLibCheck --esModuleInterop --resolveJsonModule", "package": "npm run build && npm pkg set scripts.postinstall='node dist/install' && npm pack && npm pkg set scripts.postinstall='node install'", "build": "tsup", + "ci-postbuild": "npm pkg set scripts.postinstall='node dist/install'", "release": "npm run build && npm pkg set scripts.postinstall='node dist/install' && npm publish && npm pkg set scripts.postinstall='node install'", "release-beta": "npm run build && npm pkg set scripts.postinstall='node dist/install' && npm publish --tag beta && npm pkg set scripts.postinstall='node install'", "release-local": "npm run build && npm pkg set scripts.postinstall='node dist/install' && npm link && npm pkg set scripts.postinstall='node install' && echo [FINISH]: Run \"npm link compress-pdf\" to link the package to your project"