Skip to content

Chore: minor cleanup & pnpm switch (#84) #85

Chore: minor cleanup & pnpm switch (#84)

Chore: minor cleanup & pnpm switch (#84) #85

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
if: ${{ github.reposity_owner }} == 'Interactions-as-a-Service'
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.1.3
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Check for formatting issues
run: pnpm run check:format
- name: Check for linting issues
run: pnpm run check:lint
- name: Build
run: pnpm run build
- name: Run tests
run: pnpm run test
- name: Create Release Pull Request
uses: changesets/action@v1
with:
version: node .github/changeset-version.cjs
publish: pnpm exec changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Add label
run: node ./.github/gh-label.cjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}