Skip to content

Commit 13af290

Browse files
authored
ci: switch to GHA (#220)
1 parent 76fc907 commit 13af290

File tree

5 files changed

+85
-43
lines changed

5 files changed

+85
-43
lines changed

.circleci/config.yml

-42
This file was deleted.

.github/workflows/release.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
uses: ./.github/workflows/test.yml
11+
12+
release:
13+
name: Release
14+
runs-on: ubuntu-latest
15+
needs: test
16+
environment: npm
17+
permissions:
18+
id-token: write # for CFA and npm provenance
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
with:
23+
persist-credentials: false
24+
- name: Setup Node.js
25+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
26+
with:
27+
node-version: 20.x
28+
cache: 'yarn'
29+
- name: Install
30+
run: yarn install --frozen-lockfile
31+
- uses: continuousauth/action@4e8a2573eeb706f6d7300d6a9f3ca6322740b72d # v1.0.5
32+
with:
33+
project-id: ${{ secrets.CFA_PROJECT_ID }}
34+
secret: ${{ secrets.CFA_SECRET }}
35+
npm-token: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: '0 22 * * 3'
9+
workflow_call:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
test:
16+
name: Test
17+
strategy:
18+
matrix:
19+
node-version:
20+
- '20.9'
21+
- '18.17'
22+
- '16.20'
23+
- '14.16'
24+
runs-on: macos-latest
25+
steps:
26+
- name: Install Rosetta
27+
if: ${{ matrix.node-version == '14.16' }}
28+
run: /usr/sbin/softwareupdate --install-rosetta --agree-to-license
29+
- name: Checkout
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
- name: Setup Node.js
32+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
33+
with:
34+
node-version: "${{ matrix.node-version }}"
35+
cache: 'yarn'
36+
architecture: ${{ matrix.node-version == '14.16' && 'x64' || env.RUNNER_ARCH }}
37+
- name: Install (Node.js v16+)
38+
if : ${{ matrix.node-version != '14.16' }}
39+
run: yarn install --frozen-lockfile
40+
- name: Install (Node.js < v16)
41+
if : ${{ matrix.node-version == '14.16' }}
42+
run: yarn install --frozen-lockfile --ignore-engines
43+
- name: Lint
44+
run: yarn lint
45+
- name: Test
46+
run: yarn test

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Electron Notarize
33

44
> Notarize your Electron apps seamlessly for macOS
55
6-
[![CircleCI status](https://circleci.com/gh/electron/notarize.svg?style=shield)](https://circleci.com/gh/electron/notarize)
6+
[![Test](https://github.com/electron/notarize/actions/workflows/test.yml/badge.svg)](https://github.com/electron/notarize/actions/workflows/test.yml)
77
[![NPM package](https://img.shields.io/npm/v/@electron/notarize)](https://npm.im/@electron/notarize)
88

99
## Installation

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"engines": {
2727
"node": ">= 10.0.0"
2828
},
29+
"publishConfig": {
30+
"provenance": true
31+
},
2932
"devDependencies": {
3033
"@types/debug": "^4.1.5",
3134
"@types/fs-extra": "^9.0.1",

0 commit comments

Comments
 (0)