chore(deps-dev): bump esbuild from 0.18.17 to 0.18.19 (#223) #149
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |