66jobs :
77 publish :
88 runs-on : ubuntu-latest
9- environment : publish-npm
10-
9+ environment : publish
1110 defaults :
1211 run :
1312 working-directory : ./typescript
14-
1513 steps :
16- - name : Checkout code
17- uses : actions/checkout@v4
14+ - uses : actions/checkout@v4
1815
19- - name : Use Node.js
20- uses : actions/setup-node@v4
16+ - uses : actions/setup-node@v4
2117 with :
22- node-version : " 20.x"
23- registry-url : " https://registry.npmjs.org"
18+ node-version : ' 20'
19+ registry-url : ' https://registry.npmjs.org'
20+
21+ # ################################
22+ # npm
23+ # ################################
24+
25+ # Ensure npm 11.5.1 or later is installed
26+ # - name: Update npm
27+ # run: npm install -g npm@latest
28+
29+ # - name: Publish
30+ # run: npm publish
31+
32+ # ################################
33+ # yarn
34+ # ################################
2435
25- - name : Install dependencies
26- run : npm ci
36+ # - name: Install yarn
37+ # run: npm install --global yarn && yarn --version
2738
28- - name : Publish to NPM
29- run : npm publish --access public
30- env :
31- NODE_AUTH_TOKEN : ${{ secrets.NPM_DATA_STREAMS_SDK }}
39+ # - name: Publish
40+ # run: yarn publish
41+
42+ # ################################
43+ # pnpm
44+ # ################################
45+
46+ # - name: Install pnpm
47+ # run: npm install -g pnpm@latest-10
48+
49+ # - name: Publish
50+ # run: pnpm publish --no-git-checks
51+
52+ # ################################
53+ # composite action
54+ # ################################
55+
56+ - name : Publish
57+ uses : smartcontractkit/.github/actions/ci-publish-npm@5cf24eba2fef708acd6050f0f9a0397b2dabbfb8
58+ with :
59+ publish-command : npm publish
0 commit comments