Skip to content

Merge pull request #256 from Kibibit/feature/update-to-node20 #26

Merge pull request #256 from Kibibit/feature/update-to-node20

Merge pull request #256 from Kibibit/feature/update-to-node20 #26

Workflow file for this run

name: Release
on:
push:
branches:
- main
- beta
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: 16
- name: Cache node modules
uses: actions/cache@v3
id: cache-node-modules
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 install
- 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 }}
run: npm run semantic-release