trigger build workflow on tag pushes (#5) #6
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: App build | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
build_and_release: | |
runs-on: macos-14 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22.x" | |
- name: authenticate with github package registry | |
run: npm set "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" | |
- run: npm ci | |
- run: npm run dist |