Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

fix(vcs): Switches to bot app for GitHub token to automate release co… #3

fix(vcs): Switches to bot app for GitHub token to automate release co…

fix(vcs): Switches to bot app for GitHub token to automate release co… #3

Workflow file for this run

name: release
on:
push:
branches:
- main
permissions:
contents: read
jobs:
release:
env:
HUSKY: 0
name: release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
steps:
- name: generate mango habanero bot app token.
uses: actions/create-github-app-token@v1
id: mh-bot-token
with:
app-id: ${{ vars.MH_BOT_APP_ID }}
private-key: ${{ secrets.MH_BOT_PRIVATE_KEY }}
- name: checkout code.
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup Node.js.
uses: actions/setup-node@v3
with:
node-version: "20.12.0"
- name: install dependencies.
run: npm ci
- name: publish release.
env:
GITHUB_TOKEN: ${{ steps.mh-bot-token.outputs.token }}
run: npx semantic-release