Remove auto-bump step from share component publishing (#31006)

* Remove auto-bump step from share component publishing

Avoids having to give release bot permission to commit directly to
the branch for now.

* Pass npm token & remove version bump param

* On this step?

* We have to provide a registry URL????

* Rename as it doesn't really release
This commit is contained in:
David Baker
2025-10-14 14:37:35 +01:00
committed by GitHub
parent b3188b47be
commit b4396f5943

View File

@@ -1,20 +1,11 @@
name: Publish shared component npm package
on:
workflow_dispatch:
inputs:
version-bump:
description: The scale of the version bump required for semver compatibility
required: true
default: patch
type: choice
options:
- patch
- minor
- major
workflow_dispatch: {}
concurrency: release
jobs:
publish:
name: "Release & Publish"
name: "Publish"
runs-on: ubuntu-latest
permissions:
contents: write
@@ -29,21 +20,15 @@ jobs:
with:
cache: "yarn"
node-version-file: ".node-version"
registry-url: "https://registry.npmjs.org"
env:
NODE_AUTH_TOKEN: ${{ secrets.ELEMENT_NPM_TOKEN }}
- name: 🛠️ Setup
# When running `install` it also calls the `prepare` step which generates
# a build
run: yarn --cwd packages/shared-components install --pure-lockfile
- name: 👊 Bump version
run: |
cd packages/shared-components
yarn version --no-git-tag-version --${{ github.event.inputs.version-bump }}
git config --global user.name 'ElementRobot'
git config --global user.email 'releases@riot.im'
git commit -am "Shared components: ${{ github.event.inputs.version-bump }} version bump"
git push
- name: 🚀 Publish to npm
working-directory: packages/shared-components
run: npm publish --access public --provenance