Skip to content

Merge pull request #3 from kasperpeulen/kasper/docs #9

Merge pull request #3 from kasperpeulen/kasper/docs

Merge pull request #3 from kasperpeulen/kasper/docs #9

Workflow file for this run

name: Release
on: [push]
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v3
- name: Prepare repository
run: git fetch --unshallow --tags
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Test
run: pnpm vitest run
- name: Build
run: pnpm run build
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm run auto shipit