Skip to content

chore(ci-cd): changed actions to generate token [#0] #71

chore(ci-cd): changed actions to generate token [#0]

chore(ci-cd): changed actions to generate token [#0] #71

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- beta
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Obtain a GitHub App Installation Access Token
id: app-token
run: |
TOKEN="$(npx obtain-github-app-installation-access-token ci ${{ secrets.BOT_PRIVATE_KEY }})"
echo "::add-mask::$TOKEN"
echo "token=$TOKEN" >> $GITHUB_OUTPUT
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.10"
- name: Install node dependencies
run: |
npm i -g \
semantic-release@23 \
conventional-changelog-conventionalcommits \
@semantic-release/commit-analyzer \
@semantic-release/release-notes-generator \
@semantic-release/changelog \
@semantic-release/git \
@semantic-release/github \
conventional-changelog-conventionalcommits
- name: Release
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: semantic-release