-
Notifications
You must be signed in to change notification settings - Fork 13
67 lines (51 loc) · 1.55 KB
/
publish-ts-sdk.yml
File metadata and controls
67 lines (51 loc) · 1.55 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Manual NPM Publish for TS SDK
on:
workflow_dispatch:
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
environment: publish-npm
defaults:
run:
working-directory: ./typescript
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
#################################
# npm
#################################
# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest
- name: Publish
run: npm publish --access public
#################################
# yarn
#################################
# - name: Install yarn
# run: npm install --global yarn && yarn --version
# - name: Publish
# run: yarn publish
#################################
# pnpm
#################################
# - name: Install pnpm
# run: npm install -g pnpm@latest-10
# - name: Publish
# run: pnpm publish --no-git-checks
#################################
# composite action
#################################
# - name: Publish
# uses: smartcontractkit/.github/actions/ci-publish-npm@5cf24eba2fef708acd6050f0f9a0397b2dabbfb8
# with:
# publish-command: npm publish
# package-json-directory: ./typescript