Skip to content

Update action.yml

Update action.yml #39

Workflow file for this run

name: release
on:
push:
branches:
- main
workflow_dispatch:
inputs:
version:
description: "Version number to release (e.g., 1.2.3)"
required: true
default: ""
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
# build local version to create token
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: 'npm'
- run: npm ci
- run: npm run build
- uses: ./
id: app-token
with:
app-id: ${{ vars.RELEASER_APP_ID }}
private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
# install release dependencies and release
- run: npm install --no-save @semantic-release/git
- run: |
# npx semantic-release --no-ci --tag-format="v${version}"
npx semantic-release --no-ci
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}