Skip to content

Commit

Permalink
chore(package): add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdcvlsc committed Jun 30, 2023
1 parent 43d356b commit fcb6c8c
Show file tree
Hide file tree
Showing 4 changed files with 7,929 additions and 483 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ jobs:
run: npm run format

- name: Stage Changes
continue-on-error: true
run: git add .

- name: Save Changes
continue-on-error: true
run: git commit -m "[Auto-format code on push]" -m "Formatted the last commit -> '${{ github.event.head_commit.message }}'"

- name: Push Changes
run: git push --force
continue-on-error: true
run: git push --force

- name: Done
run: echo done formatting files.
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: 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: 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
Loading

0 comments on commit fcb6c8c

Please sign in to comment.