File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -63,14 +63,27 @@ jobs:
6363 # Log the commit for posterity
6464 git log -n 1
6565
66- # Once semantic versioning has run and bumped versions, publish to npm
67- # TODO: Publish step that doesn't use OTP but instead follows
68- # https://docs.npmjs.com/trusted-publishers
66+ publish :
67+ runs-on : ubuntu-latest
68+ needs : [pre-release-ci, version]
69+ steps :
70+ - uses : actions/checkout@v4
71+
72+ - uses : actions/setup-node@v4
73+ with :
74+ node-version : ' 20'
75+ registry-url : ' https://registry.npmjs.org'
76+
77+ # Ensure npm 11.5.1 or later is installed
78+ - name : Update npm
79+ run : npm install -g npm@latest
80+ - run : npm ci --unsafe-perm
81+ - run : npm run build --if-present
82+ - run : npx lerna publish from-package --yes --dist-tag ${{ github.event.inputs.dist_tag }}
6983
7084 # Once publishing is complete, validate that the published packages are useable
7185 validate :
7286 uses : ./.github/workflows/shared-ci.yml
73- # TODO: Uncomment when adding publish step
74- # needs: [publish]
87+ needs : [publish]
7588 with :
7689 test-published-packages : true
You can’t perform that action at this time.
0 commit comments