ci: update versioning workflow to include released event #24
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: | |
branches: | |
- main | |
- 'releases/*' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-14 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- run: | | |
npm install -g pnpm | |
pnpm install | |
- run: | | |
export APP_VERSION=$(node -p "require('./package.json').version") | |
npm run build | |
- run: ls ./dist | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: ./dist |