Skip to content

Commit

Permalink
feat: release pipeline #3
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Jan 13, 2024
1 parent 67ff6c1 commit a00a1c6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,29 @@ on:
release:
branches: [master]
types: [created]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os:
[
{ name: 'linux', image: 'ubuntu-latest' },
{ name: 'windows', image: 'windows-latest' },
{ name: 'macos', image: 'macos-latest' },
]
runs-on: ${{ matrix.os.image }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
- name: Github checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: npm ci && npm run build
- name: Publish package on NPM 📦
run: npm publish --access public
node-version: 20
- run: npm ci
- run: npm run build
- name: Build app
run: ./scripts/make-distributions.sh
- name: Publish app
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: ./scripts/release.sh
3 changes: 3 additions & 0 deletions scripts/release.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
set -o pipefail

cd "$(dirname "$0")/.." || exit


npx electron-forge publish

0 comments on commit a00a1c6

Please sign in to comment.