Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(*): add ci for beamcoder #2

Merged
merged 2 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .circleci/.github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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:
release:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stepancar can we have it publish when we merge to main branch? I feel like it's a lot of bureaucracy to have to create a release after merging.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antoineMoPa , let's skip it for now? I tried to make it similar to what we have for framefusion

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, makes sense to keep similar and eventually move everything at once to a new workflow.

types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
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
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}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "beamcoder",
"version": "0.7.1",
"name": "@lumen5/beamcoder",
"version": "0.0.1",
"description": "Node.js native bindings to FFmpeg.",
"main": "index.js",
"types": "index.d.ts",
Expand Down