Skip to content

Release new version #29

Release new version

Release new version #29

Workflow file for this run

name: Release new version
on:
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.CI_GITHUB_TOKEN }}
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Install semantic-release extra plugins
run: pnpm install --save-dev @semantic-release/changelog @semantic-release/git
- name: Build
run: pnpm build
# - name: Generate a token
# id: generate_token
# uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
# with:
# app_id: ${{ secrets.APP_ID }}
# private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Release
env:
# GITHUB_TOKEN: ${{ steps.githubAppAuth.outputs.GITHUB_APP_TOKEN }}
GH_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.NPM_TOKEN }}
# GH_TOKEN: ${{ steps.generate_token.outputs.token }}
# GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }}
GIT_AUTHOR_NAME: ${{ secrets. GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets. GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets. GIT_COMMITTER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets. GIT_COMMITTER_EMAIL }}
run: |
npx semantic-release