-
Notifications
You must be signed in to change notification settings - Fork 7
67 lines (60 loc) · 1.85 KB
/
release.yml
File metadata and controls
67 lines (60 loc) · 1.85 KB
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
60
61
62
63
64
65
66
67
name: Publish to PyPI and NPM
on:
release:
types: [published]
defaults:
run:
shell: bash -l {0}
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.12]
yarn-version: [1.22.22]
steps:
- uses: actions/checkout@v2
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
channels: conda-forge
- name: Mamba install dependencies
run: mamba install python=${{ matrix.python-version }} pip nodejs yarn=${{ matrix.yarn-version }}
- name: Mamba install JupyterLab 4
run: mamba install jupyterlab=4.4.3 ipywidgets=8.1.7
- name: Install tools
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Build the package
run: |
node --version
npm --version
yarn --version
npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript
pip install .
hatch build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
verbose: true
- name: Use Node.js 22
uses: actions/setup-node@v1
with:
node-version: 22
- name: Publish to NPM
run: |
cd js
npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript
npm install --legacy-peer-deps
npm run build
npm config delete @here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --access=public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}