Skip to content

Commit

Permalink
Merge pull request #227 from heronlancellot/feat/semantic-release-config
Browse files Browse the repository at this point in the history
feat: configure semantic-release
  • Loading branch information
FrancoAguzzi authored Mar 19, 2024
2 parents 873c1a4 + cfac997 commit ca796fd
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- main

permissions:
contents: write
issues: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- run: pnpm test
- run: pnpm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

0 comments on commit ca796fd

Please sign in to comment.