-
Notifications
You must be signed in to change notification settings - Fork 68
37 lines (36 loc) · 1.02 KB
/
npm_publish.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
name: Publish web-client to npm
on:
release:
types: [created]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- name: Install Protoc
run: sudo apt-get install protobuf-compiler
- uses: jetli/[email protected]
with:
version: 'latest'
- name: Build package
working-directory: ./web-client
run: ./scripts/build.sh
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- name: Publish to npm
working-directory: ./web-client/dist
run: npm publish --tag next --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.SISOU_NPM_TOKEN }}