Skip to content

ci: fix semantic release #5

ci: fix semantic release

ci: fix semantic release #5

name: Semantic Release
on:
push:
branches:
- main
jobs:
release:
permissions:
contents: write
packages: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.run-release.outputs.VERSION }}
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: npm
node-version: 20
- name: Install and Run
id: run-release
env:
DEBUG: semantic-release:github
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
npm install --global semantic-release @semantic-release/github @semantic-release/changelog @semantic-release/git @semantic-release/exec
npx semantic-release
- name: Output version
run: echo ${{ steps.run-release.outputs.VERSION }}