-
Notifications
You must be signed in to change notification settings - Fork 353
48 lines (47 loc) · 1.32 KB
/
publish-types-bundle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Publish moonbeam-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-moonbeam-types-bundle:
runs-on: ubuntu-latest
permissions:
contents: read
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-file: "test/.nvmrc"
cache: pnpm
registry-url: https://registry.npmjs.org/
- name: Build types-bundle package
run: |
cd types-bundle
pnpm i --frozen-lockfile
pnpm build
- name: Publish types-bundle
run: |
cd 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}}