File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments