-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7742983
commit 30cc67a
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "@" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |