Skip to content

Commit

Permalink
build: do CFA releases (#1)
Browse files Browse the repository at this point in the history
TODO:

- [x] Set up CircleCI for this repo
- [x] Set up CFA for this repo
  • Loading branch information
dsanders11 authored Nov 1, 2023
1 parent 1985ecf commit b6a107c
Show file tree
Hide file tree
Showing 5 changed files with 1,684 additions and 30 deletions.
43 changes: 43 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version: 2.1

orbs:
cfa: continuousauth/[email protected]
node: electronjs/[email protected]

workflows:
test_and_release:
# Run the test jobs first, then the release only when all the test jobs are successful
jobs:
- node/test:
name: test-<< matrix.executor >>-<< matrix.node-version >>
test-steps:
- run: yarn lint
- when:
condition:
equal: [ '20.9', << matrix.node-version >> ]
steps:
- run: yarn test
- when:
condition:
not:
equal: [ '20.9', << matrix.node-version >> ]
steps:
- run: yarn test:loader
use-test-steps: true
matrix:
alias: test
parameters:
executor:
- node/windows
node-version:
- '20.9'
- '18.17'
- '16.20'
- cfa/release:
requires:
- test
filters:
branches:
only:
- main
context: cfa-release
26 changes: 26 additions & 0 deletions .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Check Semantic Commit"

on:
pull_request:
types:
- opened
- edited
- synchronize

permissions:
contents: read

jobs:
main:
permissions:
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- name: semantic-pull-request
uses: amannn/action-semantic-pull-request@47b15d52c5c30e94a17ec87eb8dd51ff5221fed9 # v5.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
validateSingleCommit: false
9 changes: 9 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@continuous-auth/semantic-release-npm",
"@semantic-release/github"
],
"branches": ["main"]
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@electron/windows-sign",
"version": "1.0.0",
"version": "0.0.0-development",
"description": "Codesign Electron Windows apps",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -34,6 +34,7 @@
"minimist": "^1.2.8"
},
"devDependencies": {
"@continuous-auth/semantic-release-npm": "^3.0.0",
"@types/debug": "^4.1.10",
"@types/fs-extra": "^11.0.3",
"@types/node": "^18.18.7",
Expand All @@ -60,4 +61,4 @@
"engines": {
"node": ">=16.0.0"
}
}
}
Loading

0 comments on commit b6a107c

Please sign in to comment.