mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-30 12:15:10 +01:00
39 lines
836 B
YAML
39 lines
836 B
YAML
name: Semantic Release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: write
|
|
issues: write
|
|
|
|
jobs:
|
|
semantic-release:
|
|
runs-on: ubuntu-latest
|
|
environment: dev
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
persist-credentials: false
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
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: Run Semantic Release
|
|
run: npx semantic-release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|