diff --git a/.github/workflows/release-app.yaml b/.github/workflows/release-app.yaml new file mode 100644 index 0000000..0e80f96 --- /dev/null +++ b/.github/workflows/release-app.yaml @@ -0,0 +1,51 @@ +name: Release App +on: + push: + paths: + - ".changeset/**" + pull_request: + paths: + - ".changeset/**" + branches: + - main +env: + CI: true +jobs: + release-app: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + steps: + - name: Check out Git repository + uses: actions/checkout@v1 + + - name: Install Node.js, NPM and Yarn + uses: actions/setup-node@v2 + with: + node-version: 16 + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + 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 --frozen-lockfile=false + - name: create and publish versions + run: + pnpm ci:publish:electron + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}