Update pdf-to-printer to use more resilient isValidPrinter #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push, pull_request] | |
jobs: | |
build_on_win: | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@master | |
with: | |
node-version: 18 | |
- name: generate release tag | |
id: tag | |
run: | | |
echo "::set-output name=release_tag::$((Get-Date -Format 'yy.MMdd.HHmm') -replace '\.0+', '.')" | |
(Get-Content package.json).replace('"version": "1.0.0"', """version"": ""$((Get-Date -Format 'yy.MMdd.HHmm') -replace '\.0+', '.')""") | Set-Content package.json | |
- name: install dependencies | |
run: npm ci | |
- name: build | |
run: npm run make -- --arch=ia32 | |
- name: release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: "out/make/*/*/*" | |
tag_name: ${{ steps.tag.outputs.release_tag }} |