-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workflow to publish types bundle
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 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,46 @@ | ||
name: Publish Types Bundle | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
TargetSHA: | ||
description: full sha of commit to publish moonbeam-types-bundle from | ||
required: true | ||
DryRun: | ||
description: Dry run mode | ||
required: false | ||
default: "false" | ||
|
||
jobs: | ||
publish-typescript-api: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.TargetSHA }} | ||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
version: 9 | ||
run_install: false | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.10.0 | ||
cache: pnpm | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Build Moonbeam Types Bundle package | ||
run: | | ||
cd moonbeam-types-bundle | ||
pnpm i --frozen-lockfile | ||
pnpm build | ||
- name: Publish Moonbeam Types Bundle | ||
run: | | ||
cd moonbeam-types-bundle | ||
if [ "${{ github.event.inputs.DryRun }}" == "true" ]; then | ||
pnpm publish --access public --no-git-checks --dry-run | ||
else | ||
pnpm publish --access public --no-git-checks | ||
fi | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |