Skip to content

Merge pull request #64 from Kibibit/release/new-main-release #8

Merge pull request #64 from Kibibit/release/new-main-release

Merge pull request #64 from Kibibit/release/new-main-release #8

Workflow file for this run

name: Release
on:
push:
branches:
- master
- next
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Commit
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.lock') }}
- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.BOT_TOKEN }}
- name: Build
run: npm run build --if-present
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
GIT_AUTHOR_NAME: k1b1b0t
GIT_AUTHOR_EMAIL: k1b1b0t@kibibit.io
GIT_COMMITTER_NAME: k1b1b0t
GIT_COMMITTER_EMAIL: k1b1b0t@kibibit.io
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.BOT_TOKEN }}
run: npm run semantic-release