Skip to content

Merge pull request #103 from rhnorskov/changeset-release/main #6

Merge pull request #103 from rhnorskov/changeset-release/main

Merge pull request #103 from rhnorskov/changeset-release/main #6

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install Dependencies
run: pnpm install
- name: Lint
run: pnpm run lint
- name: Run Tests
run: pnpm test
- name: Build
run: pnpm run build
- name: Publish to npmjs
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}