Thanks for a great article. You have a typo in the use of 'draft' - which needs to be outside the repository json config, not inside it. It should look like:
Also, as you are no doubt aware, there is a shorthand way of specifying jobs for all operating systems, which means a much shorter yml workflow file and no duplication of lines needed.
jobs:release:runs-on:${{ matrix.os }}strategy:matrix:os:[macos-latest,ubuntu-latest,windows-latest]steps:-uses:actions/checkout@v2-uses:actions/setup-node@masterwith:node-version:14-name:install dependenciesrun:npm install-name:publishenv:GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}run:npm run publish
Hoping you write some follow up articles about auto-updating and code signing!
Thanks for a great article. You have a typo in the use of 'draft' - which needs to be outside the repository json config, not inside it. It should look like:
Also, as you are no doubt aware, there is a shorthand way of specifying jobs for all operating systems, which means a much shorter
yml
workflow file and no duplication of lines needed.Hoping you write some follow up articles about auto-updating and code signing!
Ah thanks, fixed the
draft
typo.I've seen the matrix build before but it didn't come to mind at the time. Thanks for the addition, it's much more concise!