forked from antoineMoPa/beamcoder
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1000 Bytes
/
publish-npm.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
# This workflow will publish npm package on release
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on:
push:
branches: [ "add-ci" ]
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
env:
CPATH: /tmp/beamcoder/.ffmpeg/ffmpeg/include/
PKG_CONFIG_PATH: /tmp/beamcoder/.ffmpeg/ffmpeg/lib/pkgconfig/
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: mkdir /tmp/beamcoder
- run: cp -r . /tmp/beamcoder
- run: sudo ./scripts/install_beamcoder_dependencies.sh
working-directory: /tmp/beamcoder
- run: yarn install --frozen-lockfile
working-directory: /tmp/beamcoder
- run: yarn publish
working-directory: /tmp/beamcoder
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}