Skip to content

Commit 7de9d23

Browse files
authored
ci: Add action to update package.json version
When container configurations are updated, update the package version with Github Actions https://github.com/features/actions https://github.com/actions/checkout https://github.com/actions/setup-node
1 parent c42a4b7 commit 7de9d23

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: update-version
2+
on:
3+
push:
4+
paths:
5+
- .gitpod.**
6+
- .devcontainer/**
7+
pull_request:
8+
paths:
9+
- .gitpod.**
10+
- .devcontainer/**
11+
12+
jobs:
13+
update-version:
14+
runs-on: ubuntu-latest
15+
if: github.ref == 'refs/heads/master'
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-node@v1
19+
with:
20+
node-version: '12'
21+
- run: npm install
22+
- name: Setup GIT
23+
run: |
24+
git config --global user.name "github-actions[bot]"
25+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
26+
npm version patch -m "ci: Patch to %s"
27+
git push

0 commit comments

Comments
 (0)