-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
30 additions
and
13 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 |
---|---|---|
|
@@ -2,11 +2,6 @@ name: Release and Publish | |
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
publish-npm: | ||
description: "choose true if want publish to npm" | ||
default: false | ||
type: boolean | ||
|
||
jobs: | ||
release-it: | ||
|
@@ -19,8 +14,17 @@ jobs: | |
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: latest | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16.x" | ||
cache: "pnpm" | ||
registry-url: "https://npm.pkg.github.com" | ||
# Defaults to the user or organization that owns the workflow file | ||
scope: "@agoraio-extensions" | ||
|
||
- name: Setup Dependencies 💚 | ||
run: | | ||
|
@@ -31,6 +35,13 @@ jobs: | |
pnpm build | ||
tar -czvf agora-rtc-sdk-ng-fake.tar.gz dist | ||
- name: publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
cd dist | ||
npm publish --no-git-checks | ||
- name: Upload Artifact ⬆️ | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
|
@@ -59,4 +70,4 @@ jobs: | |
- name: Release and Publish | ||
run: | | ||
pnpm release ${{ steps.package-info.outputs.version }} --ci --npm.publish=${{ inputs.publish-npm }} --github.assets=agora-rtc-sdk-ng-fake.tar.gz | ||
pnpm release ${{ steps.package-info.outputs.version }} --ci --github.assets=agora-rtc-sdk-ng-fake.tar.gz |
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
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
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
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 +1 @@ | ||
export const VERSION = "1.0.2"; | ||
export const VERSION = "1.0.4"; |