Skip to content

πŸ”€ merge pull request #353 from tonightpass/changeset-release/master #354

πŸ”€ merge pull request #353 from tonightpass/changeset-release/master

πŸ”€ merge pull request #353 from tonightpass/changeset-release/master #354

Workflow file for this run

name: Release
on:
push:
branches:
- master
env:
NODE_OPTIONS: "--max_old_space_size=4096"
jobs:
release:
if: github.repository == 'tonightpass/kitchen'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Use pnpm
uses: pnpm/[email protected]
with:
version: "latest"
- name: Use Node
uses: actions/setup-node@v4
with:
cache: "pnpm"
- name: Install Dependencies
run: pnpm i
- name: Lint
run: pnpm lint
- name: Build
run: pnpm build
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
publish: pnpm run release
version: pnpm run version
commit: "πŸ”– release version"
title: "πŸ”– release version"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}