Skip to content

zustand-x

zustand-x #44

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
name: ${{ matrix.channel }}
runs-on: ubuntu-latest
strategy:
matrix:
channel:
- latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn
- name: Prepare release
run: yarn prerelease
# https://github.com/changesets/action
- name: Create release pull request
if: matrix.channel == 'latest'
uses: changesets/action@master
with:
publish: yarn changeset publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# https://github.com/atlassian/changesets/blob/master/docs/snapshot-releases.md
# - name: Release to @next channel
# if: matrix.channel == 'next'
# run: |
# yarn changeset version --snapshot
# yarn changeset publish --tag next
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}