Skip to content

Commit

Permalink
ci: use CFA on GHA for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 committed Aug 29, 2024
1 parent 38422e1 commit e72a54a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,20 @@ jobs:
run: yarn test --maxWorkers=2
- name: Run Linter
run: yarn prettier:check

release:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
environment: npm
permissions:
id-token: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: continuousauth/action@4396fa3eb7c9790548b9e2b6e4f527df5b861add # v1.0.1
with:
project-id: ${{ secrets.CFA_PROJECT_ID }}
secret: ${{ secrets.CFA_SECRET }}
npm-token: ${{ secrets.NPM_TOKEN }}
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"]
}

0 comments on commit e72a54a

Please sign in to comment.