This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
π add yarn tooling (#10) #17
Workflow file for this run
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: | |
tags: | |
- 'v*' # only release a versioned tag, such as v.X.Y.Z | |
permissions: | |
contents: read | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 19 | |
cache: 'yarn' | |
cache-dependency-path: src/typescript/yarn.lock | |
- name: Install yarn dependencies | |
run: yarn --cwd src/typescript install | |
- name: Build bundle | |
run: yarn --cwd src/typescript build | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install hatch | |
- name: Build package | |
run: hatch build | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |