Skip to content

Release

Release #31

Workflow file for this run

# SPDX-FileCopyrightText: 2022 Johannes Loher
#
# SPDX-License-Identifier: MIT
name: Release
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [18, 20]
steps:
- name: checkout code
uses: actions/checkout@v4
- name: install node
uses: actions/[email protected]
with:
node-version: ${{ matrix.node_version }}
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: .npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci --cache .npm --prefer-offline
- name: Lint
run: npm run lint
- name: Format Check
run: npm run format:check
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v2
- name: Build
run: npm run build
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Configure committer
run: |
git config user.name "github-actions[bot]"
git config user.email "<41898282+github-actions[bot]@users.noreply.github.com>"
- name: Bump version
uses: qzb/[email protected]
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_PAT }}
branch: ${{ github.ref }}
tags: true