Skip to content

Commit

Permalink
feat: semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaticMuch committed May 31, 2023
1 parent 4b1247c commit f646501
Show file tree
Hide file tree
Showing 7 changed files with 8,668 additions and 2,200 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/build-and-publish.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/npm-test.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/publish-npm.yaml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release
on:
push:
branches:
- main

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/hydrogen"
- 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 }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
11 changes: 11 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"branches": ["main", "next"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git",
"@semantic-release/changelog"
]
}
Loading

0 comments on commit f646501

Please sign in to comment.