-
-
Notifications
You must be signed in to change notification settings - Fork 360
43 lines (34 loc) · 946 Bytes
/
release-js-package.yml
File metadata and controls
43 lines (34 loc) · 946 Bytes
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
name: Release JS Packages
on:
push:
branches:
- main
paths:
- "packages/sdk/**" # Trigger only changes in packages
- ".github/workflows/release-js-package.yml"
permissions:
id-token: write # Required for OIDC
contents: read
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/sdk
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: "https://registry.npmjs.org"
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Update npm for OIDC support
run: npm install -g npm@latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Publish
run: pnpm publish-sdk