Skip to content

Commit b4396f5

Browse files
authored
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
1 parent b3188b4 commit b4396f5

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed
Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
name: Publish shared component npm package
22
on:
3-
workflow_dispatch:
4-
inputs:
5-
version-bump:
6-
description: The scale of the version bump required for semver compatibility
7-
required: true
8-
default: patch
9-
type: choice
10-
options:
11-
- patch
12-
- minor
13-
- major
3+
workflow_dispatch: {}
4+
145
concurrency: release
156
jobs:
167
publish:
17-
name: "Release & Publish"
8+
name: "Publish"
189
runs-on: ubuntu-latest
1910
permissions:
2011
contents: write
@@ -29,21 +20,15 @@ jobs:
2920
with:
3021
cache: "yarn"
3122
node-version-file: ".node-version"
23+
registry-url: "https://registry.npmjs.org"
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.ELEMENT_NPM_TOKEN }}
3226

3327
- name: 🛠️ Setup
3428
# When running `install` it also calls the `prepare` step which generates
3529
# a build
3630
run: yarn --cwd packages/shared-components install --pure-lockfile
3731

38-
- name: 👊 Bump version
39-
run: |
40-
cd packages/shared-components
41-
yarn version --no-git-tag-version --${{ github.event.inputs.version-bump }}
42-
git config --global user.name 'ElementRobot'
43-
git config --global user.email '[email protected]'
44-
git commit -am "Shared components: ${{ github.event.inputs.version-bump }} version bump"
45-
git push
46-
4732
- name: 🚀 Publish to npm
4833
working-directory: packages/shared-components
4934
run: npm publish --access public --provenance

0 commit comments

Comments
 (0)