Skip to content

Commit b40d3a1

Browse files
committed
chore: bump version to 2.1.0 and automate GitHub releases in CI
1 parent 689fd84 commit b40d3a1

4 files changed

Lines changed: 20 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ name: CI/CD
33
on:
44
push:
55
branches: [ main ]
6+
tags: [ 'v*' ]
67
pull_request:
78
branches: [ main ]
89

910
permissions:
10-
contents: read
11-
pages: write
1211
id-token: write
12+
contents: write
1313

1414
concurrency:
1515
group: "pages"
@@ -122,3 +122,17 @@ jobs:
122122
- name: Deploy to GitHub Pages
123123
id: deployment
124124
uses: actions/deploy-pages@v4
125+
126+
release:
127+
name: Create GitHub Release
128+
needs: test
129+
if: startsWith(github.ref, 'refs/tags/v')
130+
runs-on: ubuntu-latest
131+
permissions:
132+
contents: write
133+
steps:
134+
- uses: actions/checkout@v4
135+
- name: Create Release
136+
uses: softprops/action-gh-release@v2
137+
with:
138+
generate_release_notes: true

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
if (err) {
8787
return cb(err);
8888
}
89-
git.tag(v, v, function(err) {
89+
git.tag('v' + v, v, function(err) {
9090
if (err) {
9191
return cb(err);
9292
}

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-chart.js",
3-
"version": "2.0.2",
3+
"version": "2.1.0",
44
"description": "An angular.js wrapper for Chart.js",
55
"homepage": "http://jtblin.github.io/angular-chart.js/",
66
"main": "dist/angular-chart.js",

0 commit comments

Comments
 (0)