-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (34 loc) · 1.19 KB
/
release.yml
File metadata and controls
43 lines (34 loc) · 1.19 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
---
name: Release Node.js SDK
run-name: Release Node.js SDK
on:
push:
tags:
- "*.*.*" # version, e.g. 1.0.0
permissions:
contents: write
id-token: write # Required for NPM OIDC auth for releases
jobs:
npm:
name: Publish NPM
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: '24.14.0'
cache: "npm"
cache-dependency-path: ./package-lock.json
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm install
- name: Set NPM version
run: npm version ${{ github.ref_name }} --allow-same-version --no-git-tag-version
- name: Build SDK
run: npm run build
- name: Pack NPM
run: npm pack
- name: Publish NPM
run: npm publish --tarball=./infisical-sdk-${{github.ref_name}} --access public