Skip to content

Merge pull request #34 from imCorfitz/chore/unkey-optional #3

Merge pull request #34 from imCorfitz/chore/unkey-optional

Merge pull request #34 from imCorfitz/chore/unkey-optional #3

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
# https://github.com/actions/checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup node.js
# https://github.com/actions/setup-node
uses: actions/setup-node@v4
- name: install pnpm
uses: pnpm/action-setup@v3
with:
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: install dependencies
run: pnpm install --frozen-lockfile
- name: create and publish versions
# https://github.com/changesets/action
uses: changesets/action@v1
with:
commit: 'chore: update versions'
title: 'chore: update versions'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}