Skip to content

Commit

Permalink
add build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
samijaber committed Dec 14, 2023
1 parent 5e45466 commit b2c4d7e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Publish

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
publish-sdks:
name: Publish package
runs-on: ubuntu-latest

steps:
- name: Setup
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20.10.0"
registry-url: "https://registry.npmjs.org"

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

0 comments on commit b2c4d7e

Please sign in to comment.