Skip to content

Merge pull request #33 from JorrinKievit/changeset-release/master #40

Merge pull request #33 from JorrinKievit/changeset-release/master

Merge pull request #33 from JorrinKievit/changeset-release/master #40

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
release:
if: github.repository_owner == 'JorrinKievit'
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install dependencies and build
run: pnpm i && pnpm run build
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
publish: pnpm release
version: pnpm version-packages
commit: "chore: release packages"
title: "chore: release packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}