Skip to content

Merge pull request #29 from patrickcate/develop #5

Merge pull request #29 from patrickcate/develop

Merge pull request #29 from patrickcate/develop #5

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- main
- alpha
- beta
permissions:
contents: read
jobs:
release:
if: contains(github.event.head_commit.message, 'skip release') == false
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@v4
with:
fetch-depth: 0
token: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Verify the integrity of installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
run: npm run semantic-release