Skip to content

Merge pull request #6 from GloryWong/renovate/all-minor-patch #37

Merge pull request #6 from GloryWong/renovate/all-minor-patch

Merge pull request #6 from GloryWong/renovate/all-minor-patch #37

Workflow file for this run

name: Publish
on:
push:
branches:
- master
permissions:
actions: read
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
outputs:
release_created: ${{ steps.release.outputs.release_created }}
publish-pkg:
needs: release-please
if: needs.release-please.outputs.release_created
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build and publish electron release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish