upd #25
Workflow file for this run
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: Node.js CI | |
on: | |
push: | |
branches: [ "dev" ] | |
tags: | |
- "v*.*.*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- run: pnpm i | |
- run: pnpm --filter canyon-cli exec -- npm run build | |
- run: pnpm --filter canyon-cli exec -- npm run build-linux | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Build | |
path: packages/canyon-cli/out | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
needs: build | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: Build | |
path: packages/canyon-cli/out | |
- run: mv packages/canyon-cli/out build | |
- run: zip -r canyon-cli.zip build/ | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "canyon-cli.zip" |