Skip to content

Update GH CI

Update GH CI #7

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
test:
name: Test and Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Test
run: pnpm run test
- name: Build
run: pnpm run build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
commit: Version release
title: Next release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}