Skip to content

fix(vite): support HMR refresh for multiple contexts (#144) #74

fix(vite): support HMR refresh for multiple contexts (#144)

fix(vite): support HMR refresh for multiple contexts (#144) #74

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
Release:
# prevents this action from running on forks
if: github.repository == 'manzt/anywidget'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: "18.x"
- run: pnpm install --frozen-lock
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: |
python -m pip install --upgrade pip
pip install build twine
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
# this expects you to have a npm script called version that runs some logic and then calls `changeset version`.
version: npm run version
# This expects you to have a script called release which does a build for the packages and calls `changeset publish`
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}