-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (41 loc) · 1.08 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release
on:
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: release
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install semantic-release
run: |
npm install
npm config set access public
- name: Create dummy .git for husky #https://github.com/typicode/husky/issues/851
run: mkdir .git
- name: Compile TypeScript
run: npm run build
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- run: pip install tomlkit hatchling build
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: npx semantic-release