File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 - name : Install node
1313 uses : actions/setup-node@v2
1414 with :
15- node-version : ' 16 '
15+ node-version : " 16 "
1616 - run : echo "nextVersion=$(npm version --no-git-tag minor)" >> $GITHUB_ENV
1717 - name : Create Pull Request
1818 uses : peter-evans/create-pull-request@v3
@@ -22,19 +22,14 @@ jobs:
2222 branch : feature/bump-core-ui-version-to-${{ env.nextVersion }}
2323 commit-message : Bump core-ui version to ${{ env.nextVersion }}
2424 title : Bump core-ui version to ${{ env.nextVersion }}
25- body : ' '
25+ body : " "
2626 base : ${{ github.event.repository.default_branch }}
27- - uses : actions/github-script@v5
27+ - name : Auto Merge PR
2828 if : ${{ steps.cpr.outputs.pull-request-number }}
29- with :
30- github-token : ${{secrets.GIT_ACCESS_TOKEN}}
31- script : |
32- github.rest.issues.createComment({
33- issue_number: '${{ steps.cpr.outputs.pull-request-number }}',
34- owner: context.repo.owner,
35- repo: context.repo.repo,
36- body: '/approve'
37- })
29+ run : |
30+ gh pr merge --squash ${{ steps.cpr.outputs.pull-request-number }} --auto
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3833 publish-npm :
3934 runs-on : ubuntu-latest
4035 environment : npmjs
4338 # Setup .npmrc file to publish to npmjs.org
4439 - uses : actions/setup-node@v3
4540 with :
46- node-version : ' 16 '
47- registry-url : ' https://registry.npmjs.org'
41+ node-version : " 16 "
42+ registry-url : " https://registry.npmjs.org"
4843 - run : npm install
4944 - run : npm run build
5045 - run : npm publish
You can’t perform that action at this time.
0 commit comments