forked from kedro-org/kedro-viz
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.43 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Release to NPM and PyPI
# Builds and releases the application to NPM and PyPI
# when a new release is published or the workflow is manually triggered.
on:
release:
types: [published]
workflow_dispatch:
env:
# AWS_REGION: xxxxst-2
# CACHE_VERSION: xxxx
# SNYK_TOKEN: xxxxa727
TWINE_NON_INTERACTIVE: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_REPOSITORY_URL: ${{ secrets.TWINE_REPOSITORY_URL }}
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
jobs:
release_to_npm:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.20.0
registry-url: 'https://registry.npmjs.org'
- name: Install Node dependencies
run: npm install
- name: Build React application
run: |-
node -v
make build
- name: Publish to npm
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
release_to_pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Tests
uses: "./.github/actions/setup_tests"
- name: Make Python package
run: make package
- name: Install twine
run: python -m pip install -U twine
- name: Publish to PyPI
run: python -m twine upload package/dist/*