Skip to content

Merge pull request #61 from kyscott18/changeset-release/main #43

Merge pull request #61 from kyscott18/changeset-release/main

Merge pull request #61 from kyscott18/changeset-release/main #43

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
# This fetches the entire Git history so that Changesets can generate changelogs with the correct commits.
fetch-depth: 0
- name: Setup
uses: ./.github/actions/setup-js
- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Create release pull request or publish to npm
id: changesets
uses: changesets/action@v1
with:
version: pnpm changeset version
publish: pnpm changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}