Skip to content

Commit cd0e217

Browse files
committed
redo the github action for publishing now that we use yarn and only this one action
1 parent 7e6054c commit cd0e217

7 files changed

Lines changed: 3131 additions & 5564 deletions

File tree

.github/actions/generic-npm-build/action.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/actions/get-dev-version/action.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/clientlibs-js-publish.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,28 @@ on:
1010
ref:
1111
description: 'Branch or tag ref to publish'
1212
required: true
13-
default: 'main'
13+
default: 'main'
1414
jobs:
1515
clientlibs-js-publish:
1616
name: UpGrade Client Libs JS Publish
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: Set Input Variables
20-
id: set-vars
21-
run: |
22-
echo "::set-output name=ref::${{ inputs.ref || github.event.inputs.ref }}"
2319
- name: Git Checkout
24-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2521
with:
26-
ref: ${{ steps.set-vars.outputs.ref }}
27-
- uses: actions/setup-node@v3
22+
ref: ${{ inputs.ref || github.sha }}
23+
- uses: actions/setup-node@v4
2824
with:
2925
node-version: 22
30-
- name: Install packages/types dependencies
31-
shell: bash
32-
working-directory: packages/types
33-
run: npm ci
34-
- name: Build Types Package
35-
uses: ./.github/actions/generic-npm-build
36-
with:
37-
working_directory: clientlibs/js
38-
- name: Publish Client Libs js Package
26+
- name: Install Root Dependencies
27+
run: yarn install --frozen-lockfile
28+
- name: Install Dependencies
29+
working-directory: clientlibs/js
30+
run: yarn install --frozen-lockfile
31+
- name: Build
32+
working-directory: clientlibs/js
33+
run: yarn build
34+
- name: Publish upgrade_client_lib
3935
uses: JS-DevTools/npm-publish@v1
4036
with:
4137
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)