-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.08 KB
/
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
38
39
40
41
42
43
44
45
name: Publish
on:
push:
branches:
- '!*'
tags:
- 'v*'
permissions:
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Setup wasm-pack
uses: jetli/[email protected]
- name: Build
run: |
bun install --frozen-lockfile
bun run build
- name: Publish unity-js-tools-wasm
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/unity-js-tools-wasm
access: public
provenance: true
- name: Publish unity-js-tools
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/unity-js-tools/dist
access: public
provenance: true
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.BOT_TOKEN }}
prerelease: false