Skip to content

Merge pull request #194 from m-radmacher/dependabot/npm_and_yarn/type… #454

Merge pull request #194 from m-radmacher/dependabot/npm_and_yarn/type…

Merge pull request #194 from m-radmacher/dependabot/npm_and_yarn/type… #454

Workflow file for this run

name: Build project
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Install pkg
run: pnpm i -g pkg
- name: Run tsc
run: pnpm run build
- name: Create executable
run: pnpm run package
- uses: actions/upload-artifact@v3
with:
name: gh-get
path: ./gh-get.exe
retention-days: 3