Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 16 additions & 0 deletions .github/workflows/create-release-from-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Create draft release if needed
on:
push:
branches:
- main
jobs:
create-draft-release-if-needed:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create draft releases if needed
uses: apivideo/[email protected]
with:
github-auth-token: ${{ secrets.GITHUB_TOKEN }}
package-name-suffix-to-ignore: "@"

18 changes: 12 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
name: Release packages
name: Release package to npmjs
on:
release:
types: [published]
jobs:
deploy:
publish-npm-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'
- run: yarn
- name: Publish to npm
run: npm publish --workspace=packages/ui/react
- name: Retrieve the NPM workspace path
id: get-workspace-path
uses: apivideo/[email protected]
with:
github-auth-token: ${{ secrets.GITHUB_TOKEN }}
package-name-suffix-to-ignore: "@"
- run: yarn
- name: Publish workspace to NPM
run: npm publish --worspace ${{ steps.get-workspace-path.outputs.packagePath }} --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}