forked from JustAMan/JavascriptSubtitlesOctopus
-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (32 loc) · 881 Bytes
/
release.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
name: Build & Publish to NPM
on:
push:
tags:
- v*
jobs:
build:
name: Build & Publish to NPM
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Checkout submodules
run: |
git submodule sync
git submodule update --init --recursive --force
- name: Build Docker Image
run: |
docker build -t libass/jso .
- name: Build Binaries
run: |
docker run --rm --env LC_ALL=C.UTF-8 -v "${PWD}":/code libass/jso:latest
- name: Setup node environment for NPM
uses: actions/setup-node@v4.0.2
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
check-latest: true
- name: Publish to NPM
run: SKIP_PREPARE=1 npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}