Skip to content

Commit

Permalink
ci: refactor semrel config (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
knjk04 authored Jul 7, 2023
1 parent ec941b5 commit 4265da3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 21 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: Conventional Commits

on:
push:
branches: [ "main" ]
branches:
- "main"
- "alpha"
pull_request:
branches: [ "main" ]
branches:
- "main"
- "alpha"

jobs:
build:
Expand Down
25 changes: 6 additions & 19 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- "main"
- "alpha"
pull_request:
branches:
- "main"
- "alpha"

permissions:
contents: read # for checkout
Expand All @@ -21,24 +23,9 @@ jobs:
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
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm clean-install
- run: npx semantic-release --debug
env:
GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release --debug
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "covid19",
"dependencies": {
"@semantic-release/exec":"6.0.3",
"@semantic-release/git":"10.0.1",
Expand Down

0 comments on commit 4265da3

Please sign in to comment.