Skip to content

Build

Build #115

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will install Deno and run tests across stable and canary builds on Windows, Ubuntu and macOS.
# For more information see: https://github.com/denoland/setup-deno
name: Build
on:
workflow_dispatch:
jobs:
build_release:
runs-on: macos-latest # runs a publish on macOS
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v2
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Cache pnpm
uses: actions/cache@v4
with:
key: ${{ runner.os }}-pnpm-dep
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
- name: Install dependencies
run: pnpm i
- name: Run build
run: pnpm release-all
env:
USE_HARD_LINKS: false
GH_TOKEN: ${{ github.token }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAF_TOKEN }}
- name: Codecov
uses: codecov/[email protected]