Skip to content

fix(*): fix github actions #5

fix(*): fix github actions

fix(*): fix github actions #5

Workflow file for this run

# 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}}