-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.11 KB
/
Copy pathpublish.yaml
File metadata and controls
45 lines (36 loc) · 1.11 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
name: Publish the CellDL Editor Python Tools as a npm package
on:
workflow_dispatch:
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set the timezone to New Zealand
uses: szenius/set-timezone@v2.0
with:
timezoneLinux: 'Pacific/Auckland'
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v7
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
- name: Update npm
# Install the latest version of npm since we need npm 11.5.1 or later to publish to npm using OIDC (see
# https://docs.npmjs.com/trusted-publishers).
run: npm install -g npm@latest
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: Build the CellDL Editor Python Tools
run: |
bun install
bun run build
- name: Publish the CellDL Editor Python Tools on npm
run: |
npm publish --access public