Skip to content

Commit bd03b5f

Browse files
armhilAutomated Version Bump
andauthored
Update pullrequest.yml (#34)
* Update pullrequest.yml * change to main * types-node * ci: version bump to 1.2.10 * remove pre-commit hook, rename license... * ci: version bump to 1.2.11 * fix version --------- Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com>
1 parent cfd6ec5 commit bd03b5f

File tree

5 files changed

+45
-15
lines changed

5 files changed

+45
-15
lines changed

.github/workflows/pullrequest.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Pull Request | Build and Test
66
on:
77
# Triggers the workflow on push or pull request events but only for the "master" branch
88
pull_request:
9-
branches: [ "master" ]
9+
branches: [ "main" ]
1010

1111
# Allows you to run this workflow manually from the Actions tab
1212
workflow_dispatch:
@@ -30,3 +30,12 @@ jobs:
3030
- run: npm test
3131
- run: tsc
3232

33+
- name: Automated Version Bump
34+
uses: phips28/gh-action-bump-version@v11.0.7
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.PACKAGEBUMP_TOKEN }}
37+
with:
38+
minor-wording: 'MINOR'
39+
major-wording: 'MAJOR'
40+
patch-wording: 'patch,fixes,add,Adds,new'
41+
File renamed without changes.

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Since the original release of [Easy Code Formatter](https://appsource.microsoft.com/en/product/office/WA104382008?tab=Overview), I've received a lot of requests around extending the support for the styles and this is an attempt to do that.
77

8-
Bumping `package.json` version automatically is not there yet, so make sure your Pull Request includes a version bump, otherwise the tests would fail and you can't publish a new version.
8+
When you send a PR, the pipeline will automatically bump the package.json version if it's not bumped.
99

1010
### How to add a new style
1111

package-lock.json

Lines changed: 31 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "easy-code-formatter-styles",
3-
"version": "1.2.9",
3+
"version": "1.2.10",
44
"description": "a package which contains the styling details for easy code formatter office app.",
55
"main": "dist/index.js",
66
"repository": {
@@ -11,7 +11,6 @@
1111
"build": "tsc",
1212
"test": "jest"
1313
},
14-
"pre-commit": "test",
1514
"keywords": [
1615
"syntax",
1716
"highlighting",
@@ -35,6 +34,7 @@
3534
"pre-commit": "^1.2.2",
3635
"shelljs": "^0.8.5",
3736
"ts-jest": "^29.1.0",
38-
"typescript": "^5.1.3"
37+
"typescript": "^5.1.3",
38+
"@types/node": "^22.13.0"
3939
}
4040
}

0 commit comments

Comments
 (0)