-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 995 Bytes
/
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
name: Release everything!
on:
workflow_dispatch
jobs:
releaser:
runs-on: ubuntu-latest
environment: release
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
- uses: actions/setup-python@v4
- name: Build
run: |
node scripts/build.js ${{ github.run_id }}
cd build/pypi
python -m pip install build --user
python -m build
- uses: ncipollo/release-action@v1
with:
artifacts: "build/raw/*"
tag: v1.0.${{ github.run_id }}
- name: npm publish
working-directory: build/npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: build/pypi/dist