Skip to content

Commit 9a8b7fd

Browse files
authored
ci(fix): deleting jobs that commit changes to master on publish action (#46)
1 parent 34e26c5 commit 9a8b7fd

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,10 @@ jobs:
3333
cache: 'npm'
3434
registry-url: https://registry.npmjs.org
3535

36-
- name: Update the version in example/package.json
37-
if: steps.version_check.outputs.changed == 'true'
38-
run: |
39-
NEW_VERSION=${{ steps.version_check.outputs.version }}
40-
jq --arg v "$NEW_VERSION" '.dependencies."@vouched.id/vouched-react-native" = $v' example/package.json > example/package.json.tmp && mv example/package.json.tmp example/package.json
41-
4236
- name: Install dependencies
4337
if: steps.version_check.outputs.changed == 'true'
4438
run: npm ci
4539

46-
- name: Configure Git
47-
if: steps.version_check.outputs.changed == 'true'
48-
run: |
49-
git config --global user.name 'github-actions[bot]'
50-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
51-
52-
- name: Confirm the version change in example/package.json
53-
if: steps.version_check.outputs.changed == 'true'
54-
run: |
55-
git add example/package.json
56-
git commit -m "chore: update the version in example to ${{ steps.version_check.outputs.version }} [skip ci]"
57-
git push
58-
59-
- name: Create a Git tag with the new version
60-
if: steps.version_check.outputs.changed == 'true'
61-
run: |
62-
git tag -a "v${{ steps.version_check.outputs.version }}" -m "Release v${{ steps.version_check.outputs.version }}"
63-
git push origin --tags
64-
6540
- name: Publish to NPM
6641
if: steps.version_check.outputs.changed == 'true'
6742
run: npm publish

0 commit comments

Comments
 (0)