forked from stadiamaps/ferrostar
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (40 loc) · 1.05 KB
/
Copy pathnpm-publish.yml
File metadata and controls
53 lines (40 loc) · 1.05 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
name: Publish NPM Package
on:
release:
types: [published]
env:
CARGO_TERM_COLOR: always
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: macos-15
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
working-directory: web
- name: Build
run: npm run build
working-directory: web
- name: Update package.json with the public package refs
run: ./update-package-json.sh
working-directory: web
- name: Pack
run: "npm run pack:all"
working-directory: web
- name: Publish Core
run: "npm run publish:core"
working-directory: web
- name: Publish Web Component
run: npm publish --access public
working-directory: web