-
Notifications
You must be signed in to change notification settings - Fork 141
48 lines (40 loc) · 1.11 KB
/
release-account.yml
File metadata and controls
48 lines (40 loc) · 1.11 KB
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: Release Account
on:
workflow_dispatch:
inputs:
packageVersion:
description: "The version to publish in MAJOR.MINOR.PATCH format"
required: true
default: ""
jobs:
release:
env:
PACKAGE_VERSION: ${{ github.event.inputs.packageVersion }}
name: Release
runs-on: ubuntu-latest
environment: publish
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: 'Setup'
uses: ./.github/actions/setup
- name: Update npm
run: |
npm install -g npm@latest
- name: Set version
run: yarn workspace @base-org/account version ${{ env.PACKAGE_VERSION }}
# Build the package
- name: Prebuild Packages
run: yarn workspace @base-org/account prebuild
- name: Build Packages
run: yarn workspace @base-org/account build
- name: Publish to npm
run: |
cd packages/account-sdk
npm publish --tag latest --access public