Skip to content

Commit

Permalink
feat: updated electron version
Browse files Browse the repository at this point in the history
Updated to the latest electron version of v24

BREAKING CHANGE: v24 electron
  • Loading branch information
IT-MikeS committed May 12, 2023
1 parent 2e8c803 commit 7d57405
Show file tree
Hide file tree
Showing 10 changed files with 4,446 additions and 1,754 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release to NPM Next
on:
push:
branches:
- next

permissions:
contents: write
id-token: write

jobs:
release:
name: Release
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: 'Setup Tools'
uses: ./.github/actions/setup-tools
- name: Build package
run: pnpm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: pnpm run shipit-next
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release to NPM Latest
on:
push:
branches:
- main

permissions:
contents: write
id-token: write

jobs:
release:
name: Release
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: 'Setup Tools'
uses: ./.github/actions/setup-tools
- name: Build package
run: pnpm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: pnpm run shipit
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run fmt
4 changes: 4 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

exec < /dev/tty && pnpm git-cz --hook || true
30 changes: 30 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"branches": [
"main",
{ "name": "next", "prerelease": true }
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false,
"tarballDir": false
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json",
"pnpm-lock.json",
"CHANGELOG.md"
],
"message": "🔩(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}\n\n\nskip-checks: true"
}
],
"@semantic-release/github"
]
}

0 comments on commit 7d57405

Please sign in to comment.