Skip to content

Commit

Permalink
feat(build): implement release automation (#11)
Browse files Browse the repository at this point in the history
This PR configures release automation for the project using
@semantic-release

### Changes Made

- Added
[semantic-release](https://github.com/semantic-release/semantic-release)
npm module to devDeps
- Added a github actions workflow to run release against release branch
`main`
- Added semantic-release credit badge to readme
  • Loading branch information
babblebey authored Jun 10, 2024
1 parent 8f4883e commit e601750
Show file tree
Hide file tree
Showing 4 changed files with 7,454 additions and 1,990 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release
on:
push:
branches:
- main

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Private Key Converter

![GitHub](https://img.shields.io/github/license/babblebey/private-key-converter)
![GitHub](https://img.shields.io/github/license/babblebey/private-key-converter) [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)

This is a tiny project that allows you to convert private key formats through a web interface. Currently, it supports conversion from `PKCS#1` to `PKCS#8`.

Expand Down
Loading

0 comments on commit e601750

Please sign in to comment.